Wrap poll.h includes in HAVE_POLL_H.

This commit is contained in:
Darren Tucker 2019-10-28 15:53:25 +11:00
parent 9239a18f96
commit 6fc7e1c6fe
4 changed files with 8 additions and 0 deletions

2
kex.c
View File

@ -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>

2
misc.c
View File

@ -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>

View File

@ -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>

View 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>