]> granicus.if.org Git - curl/commitdiff
tests/server/util: prefer <poll.h> over <sys/poll.h>
authorMarcel Raad <raad@teamviewer.com>
Wed, 12 Apr 2017 06:45:54 +0000 (08:45 +0200)
committerMarcel Raad <raad@teamviewer.com>
Wed, 12 Apr 2017 06:45:54 +0000 (08:45 +0200)
Follow-up to aa573c3c55cda72ec5ef677d87f6f46a53385f0c

Ref: https://github.com/curl/curl/pull/1406

tests/server/util.c

index b3e874434d2448a2832e06140a24e8adbe26cd7a..a2340f462198299a170e602379a8d3700b0c94d0 100644 (file)
 #ifdef HAVE_NETDB_H
 #include <netdb.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 __MINGW32__
 #include <w32api.h>