From c752864b8101aa582883fdc5404fc7e5196a8bfc Mon Sep 17 00:00:00 2001 From: Ted Vessenes Date: Wed, 11 Jul 2012 10:49:16 -0400 Subject: [PATCH] Fix missing POLLRDHUP constant on older systems. Attempting to compile with g++ 4.1.2 failed because the POLLRDHUP constant was not defined when is included. --- src/subprocess.cc | 7 +++++++ 1 file changed, 7 insertions(+) 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 #include +// Older versions of won't find this in . Some versions keep it in +// , 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) { -- 2.7.4