p9y: fix includes
[m6w6/libmemcached] / src / p9y / poll.hpp
index 57fee463b274d3c60ad012528201b72cfe1401f2..bff0f1b72c3817a9b8243418e7b3133634be779d 100644 (file)
@@ -2,10 +2,10 @@
 
 #include "libmemcached-1/platform.h"
 
-#if defined HAVE_SYS_POLL_H
-#  include <sys/poll.h>
-#elif defined HAVE_POLL_H
+#if defined HAVE_POLL_H
 #  include <poll.h>
+#elif defined HAVE_SYS_POLL_H
+#  include <sys/poll.h>
 #elif defined _WIN32
 #  define poll WSAPoll
 typedef int nfds_t;