diff options
author | Pietro Cerutti <gahr@gahr.ch> | 2016-09-20 10:52:56 (GMT) |
---|---|---|
committer | Pietro Cerutti <gahr@gahr.ch> | 2016-09-20 10:52:56 (GMT) |
commit | 965e549b8dc08f0692ae8f5b33cbe957118c46bd (patch) | |
tree | fe8b8dc69e335c1e0d6485f102f98d247fd3b46d | |
parent | 68cf75583ddae4b29f333f7275a690342ac8a1d0 (diff) | |
download | Ninja-965e549b8dc08f0692ae8f5b33cbe957118c46bd.zip Ninja-965e549b8dc08f0692ae8f5b33cbe957118c46bd.tar.gz Ninja-965e549b8dc08f0692ae8f5b33cbe957118c46bd.tar.bz2 |
Disable ppoll(2) on FreeBSD < 10.2
-rw-r--r-- | src/subprocess-posix.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/subprocess-posix.cc b/src/subprocess-posix.cc index 5ffe85b..3c81b7f 100644 --- a/src/subprocess-posix.cc +++ b/src/subprocess-posix.cc @@ -24,6 +24,13 @@ #include <sys/wait.h> #include <spawn.h> +#ifdef __FreeBSD__ +# include <sys/param.h> +# if defined USE_PPOLL && __FreeBSD_version < 1002000 +# undef USE_PPOLL +# endif +#endif + extern char** environ; #include "util.h" |