summaryrefslogtreecommitdiff
path: root/support
diff options
context:
space:
mode:
Diffstat (limited to 'support')
-rw-r--r--support/unix/waitio.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/support/unix/waitio.c b/support/unix/waitio.c
index 0d762ea6d..fa5edb65e 100644
--- a/support/unix/waitio.c
+++ b/support/unix/waitio.c
@@ -30,10 +30,9 @@
#ifdef WAITIO_USES_POLL
-#ifdef HAVE_POLL_H
+#if HAVE_POLL_H
#include <poll.h>
-#endif
-#ifdef HAVE_SYS_POLL_H
+#elif HAVE_SYS_POLL_H
#include <sys/poll.h>
#endif