Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/ext/cwd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#endif
#endif

#if (defined(BOOST_PROCESS_V2_WINDOWS) || defined(__linux__) || defined(__ANDROID__) || defined(__sun))
#if (defined(BOOST_PROCESS_V2_WINDOWS) || defined(__linux__) || defined(__ANDROID__) || defined(__gnu_hurd__) || defined(__sun))
#include <cstdlib>
#endif

Expand Down Expand Up @@ -115,11 +115,11 @@ filesystem::path cwd(boost::process::v2::pid_type pid, error_code & ec)
return "";
}

#elif (defined(__linux__) || defined(__ANDROID__) || defined(__sun))
#elif (defined(__linux__) || defined(__ANDROID__) || defined(__gnu_hurd__) || defined(__sun))

filesystem::path cwd(boost::process::v2::pid_type pid, error_code & ec)
{
#if (defined(__linux__) || defined(__ANDROID__))
#if (defined(__linux__) || defined(__ANDROID__) || defined(__gnu_hurd__))
return filesystem::canonical(
filesystem::path("/proc") / std::to_string(pid) / "cwd", ec
);
Expand Down
6 changes: 3 additions & 3 deletions src/ext/exe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#endif
#endif

#if (defined(BOOST_PROCESS_V2_WINDOWS) || defined(__linux__) || defined(__ANDROID__) || defined(__sun))
#if (defined(BOOST_PROCESS_V2_WINDOWS) || defined(__linux__) || defined(__ANDROID__) || defined(__gnu_hurd__) || defined(__sun))
#include <cstdlib>
#endif

Expand Down Expand Up @@ -132,11 +132,11 @@ filesystem::path exe(boost::process::v2::pid_type pid, error_code & ec)
return "";
}

#elif (defined(__linux__) || defined(__ANDROID__) || defined(__sun))
#elif (defined(__linux__) || defined(__ANDROID__) || defined(__gnu_hurd__) || defined(__sun))

filesystem::path exe(boost::process::v2::pid_type pid, error_code & ec)
{
#if (defined(__linux__) || defined(__ANDROID__))
#if (defined(__linux__) || defined(__ANDROID__) || defined(__gnu_hurd__))
return filesystem::canonical(
filesystem::path("/proc") / std::to_string(pid) / "exe", ec
);
Expand Down
Loading