summaryrefslogtreecommitdiff
path: root/atomicio.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2007-09-27 07:00:09 +1000
committerDarren Tucker <dtucker@zip.com.au>2007-09-27 07:00:09 +1000
commit7c92a65a1d0feaa9712aa0542fe44455d621397a (patch)
tree1f5dfa29ad4b378484f5d9a15b609c993b43c351 /atomicio.c
parented626b42cc4414235fc2181cc139362e5e054b04 (diff)
downloadopenssh-git-7c92a65a1d0feaa9712aa0542fe44455d621397a.tar.gz
- (dtucker) [configure.ac atomicio.c] Fall back to <sys/poll.h> if we don't
have <poll.h> (eq QNX). From bacon at cs nyu edu.
Diffstat (limited to 'atomicio.c')
-rw-r--r--atomicio.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/atomicio.c b/atomicio.c
index 62ee4028..575bf890 100644
--- a/atomicio.c
+++ b/atomicio.c
@@ -34,6 +34,10 @@
#include <errno.h>
#ifdef HAVE_POLL_H
#include <poll.h>
+#else
+# ifdef HAVE_SYS_POLL_H
+# include <sys/poll.h>
+# endif
#endif
#include <string.h>
#include <unistd.h>