- (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.
diff --git a/ChangeLog b/ChangeLog
index b03e768..7ddfe36 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+20070927
+ - (dtucker) [configure.ac atomicio.c] Fall back to including <sys/poll.h> if
+   we don't have <poll.h> (eq QNX).  From bacon at cs nyu edu.
+
 20070921
  - (djm) [atomicio.c] Fix spin avoidance for platforms that define
    EWOULDBLOCK; patch from ben AT psc.edu
@@ -3262,4 +3266,4 @@
    OpenServer 6 and add osr5bigcrypt support so when someone migrates
    passwords between UnixWare and OpenServer they will still work. OK dtucker@
 
-$Id: ChangeLog,v 1.4758 2007/09/21 03:12:49 djm Exp $
+$Id: ChangeLog,v 1.4759 2007/09/26 21:00:09 dtucker Exp $
diff --git a/atomicio.c b/atomicio.c
index 62ee402..575bf89 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>
diff --git a/configure.ac b/configure.ac
index b06114b..7ef93c7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,4 +1,4 @@
-# $Id: configure.ac,v 1.384 2007/09/10 23:24:18 tim Exp $
+# $Id: configure.ac,v 1.385 2007/09/26 21:00:09 dtucker Exp $
 #
 # Copyright (c) 1999-2004 Damien Miller
 #
@@ -15,7 +15,7 @@
 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
 AC_INIT(OpenSSH, Portable, openssh-unix-dev@mindrot.org)
-AC_REVISION($Revision: 1.384 $)
+AC_REVISION($Revision: 1.385 $)
 AC_CONFIG_SRCDIR([ssh.c])
 
 AC_CONFIG_HEADER(config.h)
@@ -223,6 +223,7 @@
 	sys/dir.h \
 	sys/mman.h \
 	sys/ndir.h \
+	sys/poll.h \
 	sys/prctl.h \
 	sys/pstat.h \
 	sys/select.h \