From 6fc7e1c6fec3ba589869ae98e968c0e5e2e4695b Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Mon, 28 Oct 2019 15:53:25 +1100 Subject: [PATCH] Wrap poll.h includes in HAVE_POLL_H. --- kex.c | 2 ++ misc.c | 2 ++ packet.c | 2 ++ ssh-pkcs11-helper.c | 2 ++ 4 files changed, 8 insertions(+) diff --git a/kex.c b/kex.c index 49d701568..2195cea4e 100644 --- a/kex.c +++ b/kex.c @@ -33,7 +33,9 @@ #include #include #include +#ifdef HAVE_POLL_H #include +#endif #ifdef WITH_OPENSSL #include diff --git a/misc.c b/misc.c index 88833d7ff..78c00eb8e 100644 --- a/misc.c +++ b/misc.c @@ -38,7 +38,9 @@ #ifdef HAVE_LIBGEN_H # include #endif +#ifdef HAVE_POLL_H #include +#endif #include #include #include diff --git a/packet.c b/packet.c index 817da43b5..7a703d695 100644 --- a/packet.c +++ b/packet.c @@ -58,7 +58,9 @@ #include #include #include +#ifdef HAVE_POLL_H #include +#endif #include #include diff --git a/ssh-pkcs11-helper.c b/ssh-pkcs11-helper.c index 3bcc2440b..219ce9b5d 100644 --- a/ssh-pkcs11-helper.c +++ b/ssh-pkcs11-helper.c @@ -26,7 +26,9 @@ #include #include +#ifdef HAVE_POLL_H #include +#endif #include #include #include