wininet fix for FreeBSD

Francois Gouget fgouget at free.fr
Fri Sep 7 23:07:20 CDT 2001


   Gerald reported a compilation error on FreeBSD 4 caused by my recent
changes to wininet. And I realized today that the fix is still not in
Wine.

   So regarding ftp.c, if I remember correctly our discussion we
concluded that in_systm.h and ip.h are not needed on either FreeBSD or
Linux, and no obvious reason for including them was apparent. In that
case the best thing seems to be to remove them altogether (unless we
find that they are needed on Solaris).


Changelog:

 * dlls/wininet/internet.h,
   dlls/wininet/ftp.c

   Fix compilation errors on FreeBSD



--
Francois Gouget         fgouget at free.fr        http://fgouget.free.fr/
           Demander si un ordinateur peut penser revient à demander
                          si un sous-marin peut nager.
-------------- next part --------------
Index: dlls/wininet/internet.h
===================================================================
RCS file: /home/wine/wine/dlls/wininet/internet.h,v
retrieving revision 1.5
diff -u -r1.5 internet.h
--- dlls/wininet/internet.h	2001/08/24 19:13:36	1.5
+++ dlls/wininet/internet.h	2001/09/08 02:55:44
@@ -6,6 +6,7 @@
 # include <netdb.h>
 #endif
 #ifdef HAVE_NETINET_IN_H
+# include <sys/types.h>
 # include <netinet/in.h>
 #endif
 
Index: dlls/wininet/ftp.c
===================================================================
RCS file: /home/wine/wine/dlls/wininet/ftp.c,v
retrieving revision 1.18
diff -u -r1.18 ftp.c
--- dlls/wininet/ftp.c	2001/08/24 19:13:36	1.18
+++ dlls/wininet/ftp.c	2001/09/08 02:54:47
@@ -21,12 +21,6 @@
 #endif
 #include <unistd.h>
 #include <time.h>
-#ifdef HAVE_NETINET_IN_SYSTM_H
-# include <netinet/in_systm.h>
-#endif
-#ifdef HAVE_NETINET_IP_H
-# include <netinet/ip.h>
-#endif
 
 #include "winbase.h"
 #include "wingdi.h"


More information about the wine-patches mailing list