summaryrefslogtreecommitdiffstats
path: root/third_party/libevent/test/test-init.c
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/libevent/test/test-init.c')
-rw-r--r--third_party/libevent/test/test-init.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/third_party/libevent/test/test-init.c b/third_party/libevent/test/test-init.c
index c368715..d60aa36 100644
--- a/third_party/libevent/test/test-init.c
+++ b/third_party/libevent/test/test-init.c
@@ -6,10 +6,15 @@
#include "config.h"
#endif
+#ifdef WIN32
+#include <winsock2.h>
+#endif
#include <sys/types.h>
#include <sys/stat.h>
+#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
+#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
@@ -17,7 +22,9 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
#include <errno.h>
#include <event.h>