summaryrefslogtreecommitdiff
path: root/netlib.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2010-12-22 22:07:22 -0500
committerEric S. Raymond <esr@thyrsus.com>2010-12-22 22:07:22 -0500
commitc3c9e497b2d48b48f07e0821e36ab4c73071c39f (patch)
treef5f1b19b48f8c55dc9f92688cf4e470a6f977410 /netlib.c
parent2c69666fa6f815edbc941e278e015e54795329e8 (diff)
downloadgpsd-c3c9e497b2d48b48f07e0821e36ab4c73071c39f.tar.gz
More header portability audting with a new version of deheader.
Diffstat (limited to 'netlib.c')
-rw-r--r--netlib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/netlib.c b/netlib.c
index 75321456..446a6dd8 100644
--- a/netlib.c
+++ b/netlib.c
@@ -3,18 +3,18 @@
* BSD terms apply: see the file COPYING in the distribution root for details.
*/
#include <sys/types.h>
-#include <errno.h>
#include <string.h>
#include <fcntl.h>
#ifndef S_SPLINT_S
#include <netdb.h>
#ifndef AF_UNSPEC
+#include <sys/types.h>
+#include <sys/stat.h>
#include <sys/socket.h>
#endif /* AF_UNSPEC */
#ifndef INADDR_ANY
#include <netinet/in.h>
#endif /* INADDR_ANY */
-#include <sys/un.h>
#include <arpa/inet.h> /* for htons() and friends */
#include <unistd.h>
#endif /* S_SPLINT_S */