]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Put poll.h inside ifdef HAVE_POLL_H.
authorDarren Tucker <dtucker@dtucker.net>
Thu, 18 Nov 2021 12:05:34 +0000 (23:05 +1100)
committerDarren Tucker <dtucker@dtucker.net>
Thu, 18 Nov 2021 12:06:35 +0000 (23:06 +1100)
sftp-server.c
ssh-keyscan.c
sshd.c

index e1d8868f34a4c99595f0a793e1b1ee61cb0ad3bf..a502858df79e0e076fcf09fbb4e0bfd39c8ae5f8 100644 (file)
@@ -33,7 +33,9 @@
 #include <dirent.h>
 #include <errno.h>
 #include <fcntl.h>
+#ifdef HAVE_POLL_H
 #include <poll.h>
+#endif
 #include <pwd.h>
 #include <stdlib.h>
 #include <stdio.h>
index ccd212581a5f22530334bbe3b7e94d9047f03cc3..92c199742111a33aab70c65e6235ee27b767e167 100644 (file)
@@ -25,7 +25,9 @@
 
 #include <netdb.h>
 #include <errno.h>
+#ifdef HAVE_POLL_H
 #include <poll.h>
+#endif
 #include <stdarg.h>
 #include <stdio.h>
 #include <stdlib.h>
diff --git a/sshd.c b/sshd.c
index 4e33cc92df761d9477b38bf96d4686fd74d21646..296c6e86276eae0109d297417b407bb9bf019939 100644 (file)
--- 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>