]> sjero.net Git - wget/commitdiff
[svn] Only include Unix-specific includes #ifndef WINDOWS.
authorhniksic <devnull@localhost>
Tue, 19 Feb 2002 05:25:42 +0000 (21:25 -0800)
committerhniksic <devnull@localhost>
Tue, 19 Feb 2002 05:25:42 +0000 (21:25 -0800)
src/ChangeLog
src/host.h

index 43d80e50145b851b15e260afee2a224897a13f66..992207de7b2548713dece09a55947ac4e4ce6c10 100644 (file)
@@ -1,3 +1,8 @@
+2002-02-19  Hrvoje Niksic  <hniksic@arsdigita.com>
+
+       * host.h: Include Unix-specific includes #ifndef WINDOWS.
+       Patch originally provided by Christian Lackas.
+
 2002-02-11  Christian Lackas  <delta@lackas.net>
 
        * recur.c: recurive downloading for https fixed.
index 01a392eb400b5a25b207acc712b63f90f819987b..3ca6af48bcfab409c56252b5d288984bc0447bd0 100644 (file)
@@ -21,8 +21,16 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #define HOST_H
 
 #include <netdb.h>
-#include <netinet/in.h>
-#include <sys/socket.h>
+
+#ifdef WINDOWS
+# include <winsock.h>
+#else
+# include <sys/socket.h>
+# include <netinet/in.h>
+#ifndef __BEOS__
+# include <arpa/inet.h>
+#endif
+#endif
 
 #undef INET6