]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Put poll.h inside ifdef.
authorDarren Tucker <dtucker@dtucker.net>
Thu, 10 Feb 2022 12:27:02 +0000 (23:27 +1100)
committerDarren Tucker <dtucker@dtucker.net>
Thu, 10 Feb 2022 12:51:02 +0000 (23:51 +1100)
channels.c
clientloop.c
serverloop.c

index cceac03245f0c1ca18087e9f784664aac009ed2b..d662ff03aea0a6d38318cf24a7f7d5926007ed76 100644 (file)
@@ -57,7 +57,9 @@
 #include <fcntl.h>
 #include <limits.h>
 #include <netdb.h>
+#ifdef HAVE_POLL_H
 #include <poll.h>
+#endif
 #include <stdarg.h>
 #ifdef HAVE_STDINT_H
 # include <stdint.h>
index fd190980577c69b19417a9263ddb72173d38cd59..f8350e67224bfe14bbd8ab179910e8bc84d35f8b 100644 (file)
@@ -76,7 +76,9 @@
 #ifdef HAVE_PATHS_H
 #include <paths.h>
 #endif
+#ifdef HAVE_POLL_H
 #include <poll.h>
+#endif
 #include <signal.h>
 #include <stdio.h>
 #include <stdlib.h>
index 15beac2de04cc81d24d39cc96eef469e86c5fc6c..0541f028a650e5986e11d39cc686d6eb570b2823 100644 (file)
@@ -50,7 +50,9 @@
 #include <fcntl.h>
 #include <pwd.h>
 #include <limits.h>
+#ifdef HAVE_POLL_H
 #include <poll.h>
+#endif
 #include <signal.h>
 #include <string.h>
 #include <termios.h>