diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2010-12-14 10:15:40 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2010-12-14 10:15:40 -0500 |
commit | 6cee03b5e3ee6eb79210a9ed1e3ba5fa0037e4ca (patch) | |
tree | ae47d78862af8d1388b8555d99b6c174ca08b267 /sockaddr.h | |
parent | 65224a85007d6576c706c1ce3fae6b9e99ba1b28 (diff) | |
download | gpsd-6cee03b5e3ee6eb79210a9ed1e3ba5fa0037e4ca.tar.gz |
Because we're taking SuS seriously we can simplify the configuration machinery.
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 { |