]> granicus.if.org Git - libevent/commitdiff
bench_cascase: include getopt.h only for _WIN32 (like in other places)
authorAzat Khuzhin <a3at.mail@gmail.com>
Sat, 27 Oct 2018 23:00:16 +0000 (02:00 +0300)
committerAzat Khuzhin <azat@libevent.org>
Sat, 2 Feb 2019 12:18:01 +0000 (15:18 +0300)
Fixes: #561
(cherry picked from commit fb42e0fac60d31e081cce4c19df6061bcb56df20)

test/bench_cascade.c

index 1248835d7f7b4b2c40f60844e5eea6cf86242f9c..29a3203ecdd693c3d9756d16e1cb03ef19b3bfea 100644 (file)
@@ -35,7 +35,8 @@
 #ifdef _WIN32
 #define WIN32_LEAN_AND_MEAN
 #include <windows.h>
-#else
+#include <getopt.h>
+#else /* _WIN32 */
 #include <sys/socket.h>
 #include <sys/resource.h>
 #endif
@@ -48,7 +49,6 @@
 #include <unistd.h>
 #endif
 #include <errno.h>
-#include <getopt.h>
 #include <event.h>
 #include <evutil.h>