Fix dlls/winhttp on (some versions of) FreeBSD

Gerald Pfeifer gerald at pfeifer.com
Sat Jul 25 11:57:18 CDT 2009


This may also help other non-Linux platforms.  It did not occur 
during my nightly testing on latest FreeBSD where the include
files are more similar to Linux.

Gerald

ChangeLog:
#include <sys/socket.h> from winhttp_private.h.  Remove now redundant
inclusion from request.c.

diff --git a/dlls/winhttp/request.c b/dlls/winhttp/request.c
index 0efada4..0d179a4 100644
--- a/dlls/winhttp/request.c
+++ b/dlls/winhttp/request.c
@@ -27,9 +27,6 @@
 #ifdef HAVE_ARPA_INET_H
 # include <arpa/inet.h>
 #endif
-#ifdef HAVE_SYS_SOCKET_H
-# include <sys/socket.h>
-#endif
 
 #include "windef.h"
 #include "winbase.h"
diff --git a/dlls/winhttp/winhttp_private.h b/dlls/winhttp/winhttp_private.h
index 83df0c0..e445109 100644
--- a/dlls/winhttp/winhttp_private.h
+++ b/dlls/winhttp/winhttp_private.h
@@ -27,6 +27,9 @@
 #include "wine/unicode.h"
 
 #include <sys/types.h>
+#ifdef HAVE_SYS_SOCKET_H
+# include <sys/socket.h>
+#endif
 #ifdef HAVE_NETINET_IN_H
 # include <netinet/in.h>
 #endif



More information about the wine-patches mailing list