summaryrefslogtreecommitdiffstats
path: root/sshd.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2021-11-18 13:05:34 +0100
committerDarren Tucker <dtucker@dtucker.net>2021-11-18 13:06:35 +0100
commitb544ce1ad4afb7ee2b09f714aa63efffc73fa93a (patch)
tree489a5de8278256282293c75dd7214e31024fef8a /sshd.c
parentupstream: check for POLLHUP wherever we check for POLLIN (diff)
downloadopenssh-b544ce1ad4afb7ee2b09f714aa63efffc73fa93a.tar.xz
openssh-b544ce1ad4afb7ee2b09f714aa63efffc73fa93a.zip
Put poll.h inside ifdef HAVE_POLL_H.
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sshd.c b/sshd.c
index 4e33cc92d..296c6e862 100644
--- a/sshd.c
+++ b/sshd.c
@@ -64,7 +64,9 @@
#include <paths.h>
#endif
#include <grp.h>
+#ifdef HAVE_POLL_H
#include <poll.h>
+#endif
#include <pwd.h>
#include <signal.h>
#include <stdarg.h>