]> granicus.if.org Git - libevent/commitdiff
OpenBSD demands that sys/types.h be included before sys/socket.h
authorNick Mathewson <nickm@torproject.org>
Tue, 17 Nov 2009 02:40:14 +0000 (02:40 +0000)
committerNick Mathewson <nickm@torproject.org>
Tue, 17 Nov 2009 02:40:14 +0000 (02:40 +0000)
svn:r1539

sample/dns-example.c
test/regress_listener.c
test/regress_main.c
test/regress_util.c

index fda7def0da1c953c976740110704cdae59f805ce..c5ecf7f69d9c4676f599b5e675b3af8d5cd2b54d 100644 (file)
@@ -1,6 +1,8 @@
 
 #include <event-config.h>
 
+#include <sys/types.h>
+
 #ifdef WIN32
 #include <winsock2.h>
 #include <ws2tcpip.h>
index 14e7a2b59580c7c355ce92314bcc26d168ede8bc..87269f4ac8f0e6c7d7ad67dfde9f3ceaaf1c6245 100644 (file)
@@ -29,6 +29,8 @@
 #include <windows.h>
 #endif
 
+#include <sys/types.h>
+
 #ifndef WIN32
 #include <sys/socket.h>
 #include <netinet/in.h>
index c02605046e6de6a71acd11a193e4b4e11cbf790c..fab48c1e6f3f279cb82c39d4b8aec427c4383c60 100644 (file)
@@ -48,6 +48,7 @@
 #include <errno.h>
 #endif
 
+#include <sys/types.h>
 
 #ifndef WIN32
 #include <sys/socket.h>
index e474a34a56ab624e603415e310ec313cd1a2e95f..2476d7c0df5dc9db238faaf3c8c4a094877644fe 100644 (file)
@@ -31,6 +31,8 @@
 
 #include "event-config.h"
 
+#include <sys/types.h>
+
 #ifndef WIN32
 #include <sys/socket.h>
 #include <netinet/in.h>