]> sjero.net Git - wget/commitdiff
[svn] Enable compilation on Windows.
authorhniksic <devnull@localhost>
Thu, 31 Jan 2002 02:23:04 +0000 (18:23 -0800)
committerhniksic <devnull@localhost>
Thu, 31 Jan 2002 02:23:04 +0000 (18:23 -0800)
Submitted by Herold Heiko in
<B11A7CEC1675D511A3890002A551AD7C37D8AE@srvnt08.previnet.it>.

src/ChangeLog
src/ftp-basic.c
src/host.c

index 2b771c2372d27eaabe700e5c8350f6625f50ef0f..1660fd81271eed2d36a4c8ca07e5bb2164e2792b 100644 (file)
@@ -1,3 +1,8 @@
+2002-01-31  Herold Heiko  <Heiko.Herold@previnet.it>
+
+       * ftp-basic.c, host.c: don't include sys/socket.h, arpa/inet.h,
+       netdb.h on windows.
+
 2002-01-30  Hrvoje Niksic  <hniksic@arsdigita.com>
 
        * retr.c (retrieve_url): Remove redirection cycle detection.  This
index b3b14a7aa2c9f5d574d85f3c8d6473b58f513bdd..f851694bb51632d001fce44d65d2b4a60ffd82e0 100644 (file)
@@ -34,8 +34,10 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #include <sys/types.h>
 
 /* For inet_ntop. */
+#ifndef WINDOWS
 #include <sys/socket.h>
 #include <arpa/inet.h>
+#endif
 
 #ifdef WINDOWS
 # include <winsock.h>
index bf515f5f3d7f8d0e5b615553427bc1749fe74dfb..dbe11edb76885ff2ce180843d89172c8c492acb3 100644 (file)
@@ -18,7 +18,10 @@ along with Wget; if not, write to the Free Software
 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
 #include <config.h>
+
+#ifndef WINDOWS
 #include <netdb.h>
+#endif
 
 #include <stdio.h>
 #include <stdlib.h>