From 983f3d70f9610a35f279b656a3322087e272f2a6 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Mon, 25 Jul 2011 05:30:14 +0200 Subject: [PATCH] WIN32 io.h and fcntl.h inclusion done in setup_once.h --- lib/dict.c | 10 ++++------ lib/easy.c | 8 +------- lib/file.c | 6 ------ lib/gopher.c | 10 ++++------ lib/http.c | 5 ----- lib/ssh.c | 3 +-- lib/telnet.c | 9 ++++----- lib/tftp.c | 9 ++++----- lib/transfer.c | 5 ----- lib/url.c | 5 ----- 10 files changed, 18 insertions(+), 52 deletions(-) diff --git a/lib/dict.c b/lib/dict.c index 8c5540264..241781ab9 100644 --- a/lib/dict.c +++ b/lib/dict.c @@ -31,17 +31,18 @@ #include #include -#ifdef WIN32 -#include -#else #ifdef HAVE_SYS_SOCKET_H #include #endif +#ifdef HAVE_NETINET_IN_H #include +#endif #ifdef HAVE_UNISTD_H #include #endif +#ifdef HAVE_NETDB_H #include +#endif #ifdef HAVE_ARPA_INET_H #include #endif @@ -60,9 +61,6 @@ #include #endif - -#endif - #include "urldata.h" #include #include "transfer.h" diff --git a/lib/easy.c b/lib/easy.c index 37b195543..30daf1585 100644 --- a/lib/easy.c +++ b/lib/easy.c @@ -29,11 +29,6 @@ #include #include -#include "strequal.h" - -#ifdef WIN32 -#include -#else #ifdef HAVE_SYS_SOCKET_H #include #endif @@ -60,8 +55,7 @@ #include #endif -#endif /* WIN32 ... */ - +#include "strequal.h" #include "urldata.h" #include #include "transfer.h" diff --git a/lib/file.c b/lib/file.c index 8df6f37fe..c29b0c9f8 100644 --- a/lib/file.c +++ b/lib/file.c @@ -30,10 +30,6 @@ #include #include -#ifdef WIN32 -#include -#include -#else #ifdef HAVE_SYS_SOCKET_H #include #endif @@ -64,8 +60,6 @@ #include #endif -#endif /* WIN32 */ - #include "strtoofft.h" #include "urldata.h" #include diff --git a/lib/gopher.c b/lib/gopher.c index 8447d3fa4..dc9c134b5 100644 --- a/lib/gopher.c +++ b/lib/gopher.c @@ -31,17 +31,18 @@ #include #include -#ifdef WIN32 -#include -#else #ifdef HAVE_SYS_SOCKET_H #include #endif +#ifdef HAVE_NETINET_IN_H #include +#endif #ifdef HAVE_UNISTD_H #include #endif +#ifdef HAVE_NETDB_H #include +#endif #ifdef HAVE_ARPA_INET_H #include #endif @@ -60,9 +61,6 @@ #include #endif - -#endif - #include "urldata.h" #include #include "transfer.h" diff --git a/lib/http.c b/lib/http.c index cc01636c2..be0149cb9 100644 --- a/lib/http.c +++ b/lib/http.c @@ -30,9 +30,6 @@ #include #include -#ifdef WIN32 -#include -#else #ifdef HAVE_SYS_SOCKET_H #include #endif @@ -60,8 +57,6 @@ #include #endif -#endif - #include "urldata.h" #include #include "transfer.h" diff --git a/lib/ssh.c b/lib/ssh.c index 841caa968..dff1e1286 100644 --- a/lib/ssh.c +++ b/lib/ssh.c @@ -25,6 +25,7 @@ #include "setup.h" #ifdef USE_LIBSSH2 + #include #include #include @@ -45,7 +46,6 @@ #include #endif -#ifndef WIN32 #ifdef HAVE_SYS_SOCKET_H #include #endif @@ -65,7 +65,6 @@ #include #include #endif -#endif /* !WIN32 */ #if (defined(NETWARE) && defined(__NOVELL_LIBC__)) #undef in_addr_t diff --git a/lib/telnet.c b/lib/telnet.c index 2ae6e0ce2..5835e00cb 100644 --- a/lib/telnet.c +++ b/lib/telnet.c @@ -30,17 +30,18 @@ #include #include -#if defined(WIN32) -#include -#else #ifdef HAVE_SYS_SOCKET_H #include #endif +#ifdef HAVE_NETINET_IN_H #include +#endif #ifdef HAVE_UNISTD_H #include #endif +#ifdef HAVE_NETDB_H #include +#endif #ifdef HAVE_ARPA_INET_H #include #endif @@ -55,8 +56,6 @@ #include #endif -#endif /* WIN32 */ - #include "urldata.h" #include #include "transfer.h" diff --git a/lib/tftp.c b/lib/tftp.c index 5bb0bd5b3..73ce7aa08 100644 --- a/lib/tftp.c +++ b/lib/tftp.c @@ -29,17 +29,18 @@ #include #include -#if defined(WIN32) -#include -#else #ifdef HAVE_SYS_SOCKET_H #include #endif +#ifdef HAVE_NETINET_IN_H #include +#endif #ifdef HAVE_UNISTD_H #include #endif +#ifdef HAVE_NETDB_H #include +#endif #ifdef HAVE_ARPA_INET_H #include #endif @@ -54,8 +55,6 @@ #include #endif -#endif /* WIN32 */ - #include "urldata.h" #include #include "transfer.h" diff --git a/lib/transfer.c b/lib/transfer.c index 656e5ccb1..718507e1b 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -33,9 +33,6 @@ #include "strequal.h" #include "rawstr.h" -#ifdef WIN32 -#include -#else #ifdef HAVE_SYS_SOCKET_H #include #endif @@ -73,8 +70,6 @@ #error "We can't compile without socket() support!" #endif -#endif /* WIN32 */ - #include "urldata.h" #include #include "netrc.h" diff --git a/lib/url.c b/lib/url.c index f2bd6a0c7..39e9bab5d 100644 --- a/lib/url.c +++ b/lib/url.c @@ -30,9 +30,6 @@ #include #include -#ifdef WIN32 -#include -#else #ifdef HAVE_SYS_SOCKET_H #include #endif @@ -68,8 +65,6 @@ #error "We can't compile without socket() support!" #endif -#endif /* WIN32 */ - #ifdef HAVE_LIMITS_H #include #endif