From 65224a85007d6576c706c1ce3fae6b9e99ba1b28 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 14 Dec 2010 09:56:31 -0500 Subject: Taking SuS seriously some more. --- netlib.c | 33 ++------------------------------- 1 file changed, 2 insertions(+), 31 deletions(-) (limited to 'netlib.c') diff --git a/netlib.c b/netlib.c index 156da472..cfeb8655 100644 --- a/netlib.c +++ b/netlib.c @@ -3,45 +3,16 @@ * BSD terms apply: see the file COPYING in the distribution root for details. */ #include - -#include "gpsd_config.h" - -#ifndef S_SPLINT_S -#ifdef HAVE_SYS_SOCKET_H -#include -#endif -#ifdef HAVE_NETINET_IN_H -#include -#endif -#ifdef HAVE_NETINET_IN_SYSTM_H -#include -#endif -#ifdef HAVE_NETINET_IN_H -#include -#endif -#endif /* S_SPLINT_S */ -#ifndef S_SPLINT_S -#ifdef HAVE_NETDB_H -#include -#endif /* HAVE_NETDB_H */ -#ifdef HAVE_ARPA_INET_H -#include -#endif /* HAVE_ARPA_INET_H */ -#endif /* S_SPLINT_S */ #include +#include +#include #ifndef S_SPLINT_S #include #endif /* S_SPLINT_S */ -#include -#include #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) -- cgit v1.2.1