]> granicus.if.org Git - libevent/commitdiff
Fix http-server.c compilation on freebsd
authorNick Mathewson <nickm@torproject.org>
Tue, 30 Nov 2010 01:13:19 +0000 (20:13 -0500)
committerNick Mathewson <nickm@torproject.org>
Tue, 30 Nov 2010 01:13:19 +0000 (20:13 -0500)
sample/http-server.c

index a5a54b226e993d93d542b7bdbac000f70e370dca..fd4be299c8731359ebaec16b1cdd1a38c06cc8bf 100644 (file)
 #include <event2/util.h>
 #include <event2/keyvalq_struct.h>
 
+#ifdef _EVENT_HAVE_NETINET_IN_H
+#include <netinet/in.h>
+#endif
+
 char uri_root[512];
 
 static const struct table_entry {