|
39 | 39 | #include <AvailabilityMacros.h>
|
40 | 40 | #endif
|
41 | 41 |
|
42 |
| -#if defined (__linux__) || defined (__FreeBSD__) || defined (__FreeBSD_kernel__) || defined (__APPLE__) |
| 42 | +#if defined (__linux__) || defined (__FreeBSD__) || defined (__FreeBSD_kernel__) || defined (__APPLE__) || defined(__NetBSD__) |
43 | 43 | #include <spawn.h>
|
44 | 44 | #include <sys/wait.h>
|
45 | 45 | #include <sys/syscall.h>
|
@@ -1680,7 +1680,7 @@ Host::RunShellCommand (const char *command,
|
1680 | 1680 | // LaunchProcessPosixSpawn for Apple, Linux, FreeBSD and other GLIBC
|
1681 | 1681 | // systems
|
1682 | 1682 |
|
1683 |
| -#if defined (__APPLE__) || defined (__linux__) || defined (__FreeBSD__) || defined (__GLIBC__) |
| 1683 | +#if defined (__APPLE__) || defined (__linux__) || defined (__FreeBSD__) || defined (__GLIBC__) || defined(__NetBSD__) |
1684 | 1684 |
|
1685 | 1685 | // this method needs to be visible to macosx/Host.cpp and
|
1686 | 1686 | // common/Host.cpp.
|
@@ -1948,9 +1948,9 @@ Host::LaunchProcessPosixSpawn (const char *exe_path, ProcessLaunchInfo &launch_i
|
1948 | 1948 | #endif // LaunchProcedssPosixSpawn: Apple, Linux, FreeBSD and other GLIBC systems
|
1949 | 1949 |
|
1950 | 1950 |
|
1951 |
| -#if defined(__linux__) || defined(__FreeBSD__) || defined(__GLIBC__) |
1952 |
| -// The functions below implement process launching via posix_spawn() for Linux |
1953 |
| -// and FreeBSD. |
| 1951 | +#if defined(__linux__) || defined(__FreeBSD__) || defined(__GLIBC__) || defined(__NetBSD__) |
| 1952 | +// The functions below implement process launching via posix_spawn() for Linux, |
| 1953 | +// FreeBSD and NetBSD. |
1954 | 1954 |
|
1955 | 1955 | Error
|
1956 | 1956 | Host::LaunchProcess (ProcessLaunchInfo &launch_info)
|
@@ -2030,7 +2030,7 @@ Host::LaunchProcess (ProcessLaunchInfo &launch_info)
|
2030 | 2030 | return error;
|
2031 | 2031 | }
|
2032 | 2032 |
|
2033 |
| -#endif // defined(__linux__) or defined(__FreeBSD__) |
| 2033 | +#endif // defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__) |
2034 | 2034 |
|
2035 | 2035 | #ifndef _WIN32
|
2036 | 2036 |
|
|
0 commit comments