Include arpa/inet.h as needed on HPUX

This commit is contained in:
Harlan Stenn 2011-02-13 01:22:25 -05:00 committed by Nick Mathewson
parent 63a715e125
commit 10c834c4df
6 changed files with 18 additions and 0 deletions

3
http.c
View File

@ -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

View 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

View 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

View 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>

View 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

View 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>