diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2010-12-14 09:56:31 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2010-12-14 09:56:31 -0500 |
commit | 65224a85007d6576c706c1ce3fae6b9e99ba1b28 (patch) | |
tree | 3eb0aeb4e4ceb04dca5dc64d78635bcbec76fc6d /netlib.c | |
parent | 05a7a7c1b248f23ef9d7332b597534190f06e4f2 (diff) | |
download | gpsd-65224a85007d6576c706c1ce3fae6b9e99ba1b28.tar.gz |
Taking SuS seriously some more.
Diffstat (limited to 'netlib.c')
-rw-r--r-- | netlib.c | 33 |
1 files changed, 2 insertions, 31 deletions
@@ -3,45 +3,16 @@ * BSD terms apply: see the file COPYING in the distribution root for details. */ #include <sys/types.h> - -#include "gpsd_config.h" - -#ifndef S_SPLINT_S -#ifdef HAVE_SYS_SOCKET_H -#include <sys/socket.h> -#endif -#ifdef HAVE_NETINET_IN_H -#include <netinet/in.h> -#endif -#ifdef HAVE_NETINET_IN_SYSTM_H -#include <netinet/in_systm.h> -#endif -#ifdef HAVE_NETINET_IN_H -#include <netinet/ip.h> -#endif -#endif /* S_SPLINT_S */ -#ifndef S_SPLINT_S -#ifdef HAVE_NETDB_H -#include <netdb.h> -#endif /* HAVE_NETDB_H */ -#ifdef HAVE_ARPA_INET_H -#include <arpa/inet.h> -#endif /* HAVE_ARPA_INET_H */ -#endif /* S_SPLINT_S */ #include <errno.h> +#include <string.h> +#include <fcntl.h> #ifndef S_SPLINT_S #include <unistd.h> #endif /* S_SPLINT_S */ -#include <string.h> -#include <fcntl.h> #include "gpsd.h" #include "sockaddr.h" -#if !defined (INADDR_NONE) -#define INADDR_NONE ((in_addr_t)-1) -#endif - /*@-mustfreefresh -usedef@*/ socket_t netlib_connectsock(int af, const char *host, const char *service, const char *protocol) |