summaryrefslogtreecommitdiffstats
path: root/atomicio.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2007-06-25 22:15:12 +1000
committerDarren Tucker <dtucker@zip.com.au>2007-06-25 22:15:12 +1000
commitfebf0f5668f997c63210b3dbd50ce5443b0f6aea (patch)
treedf7829b7c652ba79cd3d2a357dbf5a4b083de6da /atomicio.c
parentdc4a779fbbefd662e1b0b4dd2417329826ff264f (diff)
- (dtucker) [atomicio.c configure.ac openbsd-compat/Makefile.in
openbsd-compat/bsd-poll.{c,h} openbsd-compat/openbsd-compat.h] Add an implementation of poll() built on top of select(2). Code from OpenNTPD with changes suggested by djm. ok djm@
Diffstat (limited to 'atomicio.c')
-rw-r--r--atomicio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/atomicio.c b/atomicio.c
index afe3444c..f32ff85b 100644
--- a/atomicio.c
+++ b/atomicio.c
@@ -32,7 +32,9 @@
#include <sys/uio.h>
#include <errno.h>
+#ifdef HAVE_POLL_H
#include <poll.h>
+#endif
#include <string.h>
#include <unistd.h>