summaryrefslogtreecommitdiff
path: root/netlib.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2010-12-15 15:25:31 -0500
committerEric S. Raymond <esr@thyrsus.com>2010-12-15 15:25:31 -0500
commitc078e8fdad7700e452c9973d8719315c7b298de3 (patch)
tree84e1a00308419ccf3e904c3bf40f4345578ec635 /netlib.c
parent494bdad6b849d18ce86437d9193edfe3d1211710 (diff)
downloadgpsd-c078e8fdad7700e452c9973d8719315c7b298de3.tar.gz
Lift some buried #includes. All regression tests pass.
Diffstat (limited to 'netlib.c')
-rw-r--r--netlib.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/netlib.c b/netlib.c
index f368d41d..f0812dff 100644
--- a/netlib.c
+++ b/netlib.c
@@ -7,6 +7,17 @@
#include <errno.h>
#include <string.h>
#include <fcntl.h>
+#include <netdb.h>
+#ifndef S_SPLINT_S
+#ifndef AF_UNSPEC
+#include <sys/socket.h>
+#endif /* AF_UNSPEC */
+#endif /* S_SPLINT_S */
+#ifndef INADDR_ANY
+#include <netinet/in.h>
+#endif /* INADDR_ANY */
+#include <sys/un.h>
+#include <arpa/inet.h> /* for htons() and friends */
#ifndef S_SPLINT_S
#include <unistd.h>
#endif /* S_SPLINT_S */