summaryrefslogtreecommitdiff
path: root/monitor_fdpass.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2014-07-03 13:29:50 +1000
committerDamien Miller <djm@mindrot.org>2014-07-03 13:29:50 +1000
commit9eb4cd9a32c32d40d36450b68ed93badc6a94c68 (patch)
tree294747882eff0a8cfcf9277c741c693dae6d8743 /monitor_fdpass.c
parent8da0fa24934501909408327298097b1629b89eaa (diff)
- (djm) [monitor_fdpass.c] Use sys/poll.h if poll.h doesn't exist;
bz#2237
Diffstat (limited to 'monitor_fdpass.c')
-rw-r--r--monitor_fdpass.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/monitor_fdpass.c b/monitor_fdpass.c
index 7eb6f5c6..100fa566 100644
--- a/monitor_fdpass.c
+++ b/monitor_fdpass.c
@@ -34,12 +34,17 @@
#endif
#include <errno.h>
-#ifdef HAVE_POLL_H
-#include <poll.h>
-#endif
#include <string.h>
#include <stdarg.h>
+#ifdef HAVE_POLL_H
+# include <poll.h>
+#else
+# ifdef HAVE_SYS_POLL_H
+# include <sys/poll.h>
+# endif
+#endif
+
#include "log.h"
#include "monitor_fdpass.h"