]> granicus.if.org Git - libevent/commitdiff
Add some headers to fix freebsd compilation
authorNick Mathewson <nickm@torproject.org>
Thu, 18 Feb 2010 18:52:04 +0000 (13:52 -0500)
committerNick Mathewson <nickm@torproject.org>
Thu, 18 Feb 2010 18:52:04 +0000 (13:52 -0500)
sample/hello-world.c
test/test-ratelim.c

index 773c858900aa3b3902b6d1f6d2978de73d96946f..d0426993758325cf907f2f3c4cf6e0c7744db6f0 100644 (file)
 #include <errno.h>
 #include <stdio.h>
 #include <signal.h>
+#ifndef WIN32
+#include <netinet/in.h>
+#include <sys/socket.h>
+#endif
 
 #include <event2/bufferevent.h>
 #include <event2/buffer.h>
index ed3d41aba90d7194a1b9435be560b913d6f6868d..542691a998126a499e94b8736e101211fe4005ef 100644 (file)
@@ -33,6 +33,9 @@
 #ifdef WIN32
 #include <winsock2.h>
 #include <ws2tcpip.h>
+#else
+#include <sys/socket.h>
+#include <netinet/in.h>
 #endif
 
 #include <event2/bufferevent.h>