diff options
author | Evan Martin <martine@danga.com> | 2012-07-11 21:40:28 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2012-07-11 21:40:28 (GMT) |
commit | c7a3e306bea8514d5bbdda8ccc93950752fdeb33 (patch) | |
tree | 6c98a99bd69f28295c0a1d4c060ebf168bade57d /src | |
parent | b90d0387fb821a9f9fc0e15473cd00b1fb89c550 (diff) | |
parent | 9bcd0d667c17922fcc6144c5336d1890b2c7b6c5 (diff) | |
download | Ninja-c7a3e306bea8514d5bbdda8ccc93950752fdeb33.zip Ninja-c7a3e306bea8514d5bbdda8ccc93950752fdeb33.tar.gz Ninja-c7a3e306bea8514d5bbdda8ccc93950752fdeb33.tar.bz2 |
Merge pull request #359 from tedv/old-arch
Fix missing POLLRDHUP constant on older systems.
Diffstat (limited to 'src')
-rw-r--r-- | src/subprocess.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/subprocess.cc b/src/subprocess.cc index 0d240b1..1c47fd1 100644 --- a/src/subprocess.cc +++ b/src/subprocess.cc @@ -25,6 +25,13 @@ #include <string.h> #include <sys/wait.h> +// Older versions of glibc (like 2.4) won't find this in <poll.h>. glibc +// 2.4 keeps it in <asm-generic/poll.h>, though attempting to include that +// will redefine the pollfd structure. +#ifndef POLLRDHUP +#define POLLRDHUP 0x2000 +#endif + #include "util.h" Subprocess::Subprocess() : fd_(-1), pid_(-1) { |