]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Wrap poll.h includes in HAVE_POLL_H.
authorDarren Tucker <dtucker@dtucker.net>
Mon, 28 Oct 2019 04:53:25 +0000 (15:53 +1100)
committerDarren Tucker <dtucker@dtucker.net>
Mon, 28 Oct 2019 05:27:53 +0000 (16:27 +1100)
kex.c
misc.c
packet.c
ssh-pkcs11-helper.c

diff --git a/kex.c b/kex.c
index 49d701568c28a0abefd5be25949f81568554777a..2195cea4edd053e6a8e80a0291d298832172ae98 100644 (file)
--- a/kex.c
+++ b/kex.c
@@ -33,7 +33,9 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
+#ifdef HAVE_POLL_H
 #include <poll.h>
+#endif
 
 #ifdef WITH_OPENSSL
 #include <openssl/crypto.h>
diff --git a/misc.c b/misc.c
index 88833d7ff24680b661343bc93f84b279253c7bca..78c00eb8e38a2986d475409d6909325c43b0b404 100644 (file)
--- a/misc.c
+++ b/misc.c
@@ -38,7 +38,9 @@
 #ifdef HAVE_LIBGEN_H
 # include <libgen.h>
 #endif
+#ifdef HAVE_POLL_H
 #include <poll.h>
+#endif
 #include <signal.h>
 #include <stdarg.h>
 #include <stdio.h>
index 817da43b5a7f547baa64b40e20d439a03c116e93..7a703d695acf4e18e3c6b709e33ea5152f0811c1 100644 (file)
--- a/packet.c
+++ b/packet.c
@@ -58,7 +58,9 @@
 #include <string.h>
 #include <unistd.h>
 #include <limits.h>
+#ifdef HAVE_POLL_H
 #include <poll.h>
+#endif
 #include <signal.h>
 #include <time.h>
 
index 3bcc2440b2faf869bb6414765d91c4a72a1afd96..219ce9b5dd88294fe3b00de7e0133e067aa0378c 100644 (file)
@@ -26,7 +26,9 @@
 
 #include <stdlib.h>
 #include <errno.h>
+#ifdef HAVE_POLL_H
 #include <poll.h>
+#endif
 #include <stdarg.h>
 #include <string.h>
 #include <unistd.h>