]> granicus.if.org Git - libevent/commitdiff
Include arpa/inet.h as needed on HPUX
authorHarlan Stenn <stenn@ntp.org>
Sun, 13 Feb 2011 06:22:25 +0000 (01:22 -0500)
committerNick Mathewson <nickm@torproject.org>
Tue, 22 Feb 2011 05:24:36 +0000 (00:24 -0500)
http.c
sample/hello-world.c
sample/http-server.c
test/bench_httpclient.c
test/regress_listener.c
test/test-ratelim.c

diff --git a/http.c b/http.c
index 3b947aae42398df5dfcc3ac5891257816479b6fb..9c1481e6342bd877274601c5969b61c61d2afe4b 100644 (file)
--- a/http.c
+++ b/http.c
@@ -56,6 +56,9 @@
 #ifdef _EVENT_HAVE_NETINET_IN_H
 #include <netinet/in.h>
 #endif
+#ifdef _EVENT_HAVE_ARPA_INET_H
+#include <arpa/inet.h>
+#endif
 #ifdef _EVENT_HAVE_NETDB_H
 #include <netdb.h>
 #endif
index 90df85f7048f08343c16a8bb6c57166c27361301..d40af5296f4d28205b11218d0ef0bb27f287cac6 100644 (file)
@@ -13,6 +13,9 @@
 #include <signal.h>
 #ifndef WIN32
 #include <netinet/in.h>
+# ifdef _XOPEN_SOURCE_EXTENDED
+#  include <arpa/inet.h>
+# endif
 #include <sys/socket.h>
 #endif
 
index f9e84d1c9e79bdee245d2fd4670ed05d7a1730fe..e8b7b408dd45336dc28e4e5affcdd23d74f9c0ba 100644 (file)
@@ -36,6 +36,9 @@
 
 #ifdef _EVENT_HAVE_NETINET_IN_H
 #include <netinet/in.h>
+# ifdef _XOPEN_SOURCE_EXTENDED
+#  include <arpa/inet.h>
+# endif
 #endif
 
 #ifdef WIN32
index 19f025f1887244b125c295e82db4e874c856f2a4..f0888e6caa32d695a456e36507e4badfed293074 100644 (file)
@@ -31,6 +31,9 @@
 #else
 #include <sys/socket.h>
 #include <netinet/in.h>
+# ifdef _XOPEN_SOURCE_EXTENDED
+#  include <arpa/inet.h>
+# endif
 #endif
 #include <stdlib.h>
 #include <errno.h>
index 1438f3aa9f721258cc30cdfeef188cf989b73ad9..44fee7f4c5ead3e0d426e903adf5bc5123a1e3b7 100644 (file)
@@ -34,6 +34,9 @@
 #ifndef WIN32
 #include <sys/socket.h>
 #include <netinet/in.h>
+# ifdef _XOPEN_SOURCE_EXTENDED
+#  include <arpa/inet.h>
+# endif
 #include <unistd.h>
 #endif
 
index 824434e08959616a1de40b2a591799acfcbb910f..edd7ae21607958b1add187d701e9bbbe07d7223a 100644 (file)
@@ -36,6 +36,9 @@
 #else
 #include <sys/socket.h>
 #include <netinet/in.h>
+# ifdef _XOPEN_SOURCE_EXTENDED
+#  include <arpa/inet.h>
+# endif
 #endif
 #include <signal.h>