diff options
Diffstat (limited to 'sockaddr.h')
-rw-r--r-- | sockaddr.h | 18 |
1 files changed, 3 insertions, 15 deletions
@@ -1,23 +1,11 @@ /* klugey def'n of a socket address struct helps hide IPV4 vs. IPV6 ugliness */ -#ifndef S_SPLINT_S -#ifdef HAVE_SYS_SOCKET_H -#include <sys/socket.h> -#else -#define AF_UNSPEC 0 -#endif /* HAVE_SYS_SOCKET_H */ -#ifdef HAVE_SYS_UN_H +#include <netdb.h> #include <sys/un.h> -#endif /* HAVE_SYS_UN_H */ -#ifdef HAVE_NETINET_IN_H #include <netinet/in.h> -#endif /* HAVE_NETINET_IN_H */ -#ifdef HAVE_ARPA_INET_H #include <arpa/inet.h> -#endif /* HAVE_ARPA_INET_H */ -#ifdef HAVE_NETDB_H -#include <netdb.h> -#endif /* HAVE_NETDB_H */ +#ifndef S_SPLINT_S +#include <sys/socket.h> #endif /* S_SPLINT_S */ typedef union sockaddr_u { |