diff options
Diffstat (limited to 'src/subprocess.cc')
-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..fee842f 100644 --- a/src/subprocess.cc +++ b/src/subprocess.cc @@ -25,6 +25,13 @@ #include <string.h> #include <sys/wait.h> +// Older versions of won't find this in <poll.h>. Some versions keep 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) { |