summaryrefslogtreecommitdiff
path: root/sockaddr.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2010-12-14 10:15:40 -0500
committerEric S. Raymond <esr@thyrsus.com>2010-12-14 10:15:40 -0500
commit6cee03b5e3ee6eb79210a9ed1e3ba5fa0037e4ca (patch)
treeae47d78862af8d1388b8555d99b6c174ca08b267 /sockaddr.h
parent65224a85007d6576c706c1ce3fae6b9e99ba1b28 (diff)
downloadgpsd-6cee03b5e3ee6eb79210a9ed1e3ba5fa0037e4ca.tar.gz
Because we're taking SuS seriously we can simplify the configuration machinery.
Diffstat (limited to 'sockaddr.h')
-rw-r--r--sockaddr.h18
1 files changed, 3 insertions, 15 deletions
diff --git a/sockaddr.h b/sockaddr.h
index 118fb372..7ba0d4b5 100644
--- a/sockaddr.h
+++ b/sockaddr.h
@@ -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 {