aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/select.h6
-rw-r--r--src/tool_sleep.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/select.h b/lib/select.h
index e247bd9d0..4ed5dd2f8 100644
--- a/lib/select.h
+++ b/lib/select.h
@@ -24,10 +24,10 @@
#include "curl_setup.h"
-#ifdef HAVE_SYS_POLL_H
-#include <sys/poll.h>
-#elif defined(HAVE_POLL_H)
+#ifdef HAVE_POLL_H
#include <poll.h>
+#elif defined(HAVE_SYS_POLL_H)
+#include <sys/poll.h>
#endif
/*
diff --git a/src/tool_sleep.c b/src/tool_sleep.c
index d878512ac..e19db5a77 100644
--- a/src/tool_sleep.c
+++ b/src/tool_sleep.c
@@ -25,10 +25,10 @@
# include <sys/select.h>
#endif
-#ifdef HAVE_SYS_POLL_H
-# include <sys/poll.h>
-#elif defined(HAVE_POLL_H)
+#ifdef HAVE_POLL_H
# include <poll.h>
+#elif defined(HAVE_SYS_POLL_H)
+# include <sys/poll.h>
#endif
#ifdef MSDOS