From a861f718ed53d4517dbb27b2b4f12a6be0759180 Mon Sep 17 00:00:00 2001 From: hniksic Date: Wed, 30 Jan 2002 18:23:04 -0800 Subject: [PATCH] [svn] Enable compilation on Windows. Submitted by Herold Heiko in . --- src/ChangeLog | 5 +++++ src/ftp-basic.c | 2 ++ src/host.c | 3 +++ 3 files changed, 10 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 2b771c23..1660fd81 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2002-01-31 Herold Heiko + + * ftp-basic.c, host.c: don't include sys/socket.h, arpa/inet.h, + netdb.h on windows. + 2002-01-30 Hrvoje Niksic * retr.c (retrieve_url): Remove redirection cycle detection. This diff --git a/src/ftp-basic.c b/src/ftp-basic.c index b3b14a7a..f851694b 100644 --- a/src/ftp-basic.c +++ b/src/ftp-basic.c @@ -34,8 +34,10 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include /* For inet_ntop. */ +#ifndef WINDOWS #include #include +#endif #ifdef WINDOWS # include diff --git a/src/host.c b/src/host.c index bf515f5f..dbe11edb 100644 --- a/src/host.c +++ b/src/host.c @@ -18,7 +18,10 @@ along with Wget; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include + +#ifndef WINDOWS #include +#endif #include #include -- 2.39.2