From: Nick Mathewson <nickm@torproject.org>
Date: Tue, 30 Nov 2010 01:13:19 +0000 (-0500)
Subject: Fix http-server.c compilation on freebsd
X-Git-Tag: release-2.0.9-rc~10
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ad66dfd064d8e246f699c9512f9c3c6a5a0b2b69;p=libevent

Fix http-server.c compilation on freebsd
---

diff --git a/sample/http-server.c b/sample/http-server.c
index a5a54b22..fd4be299 100644
--- a/sample/http-server.c
+++ b/sample/http-server.c
@@ -30,6 +30,10 @@
 #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 {