diff --git a/dlls/wininet/cookie.c b/dlls/wininet/cookie.c index 12d841bc7b9..1ee88090adb 100644 --- a/dlls/wininet/cookie.c +++ b/dlls/wininet/cookie.c @@ -23,6 +23,10 @@ #include "config.h" #include "wine/port.h" +#if defined(__MINGW32__) || defined (_MSC_VER) +#include +#endif + #include #include #include diff --git a/dlls/wininet/dialogs.c b/dlls/wininet/dialogs.c index dd5aa315a63..41494a67509 100644 --- a/dlls/wininet/dialogs.c +++ b/dlls/wininet/dialogs.c @@ -21,6 +21,10 @@ #include "config.h" #include "wine/port.h" +#if defined(__MINGW32__) || defined (_MSC_VER) +#include +#endif + #include #include "windef.h" diff --git a/dlls/wininet/ftp.c b/dlls/wininet/ftp.c index 396f1ef2c7b..7dcbeb35311 100644 --- a/dlls/wininet/ftp.c +++ b/dlls/wininet/ftp.c @@ -30,6 +30,10 @@ #include "config.h" #include "wine/port.h" +#if defined(__MINGW32__) || defined (_MSC_VER) +#include +#endif + #include #include #include diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c index 4a9954bc238..2b9b95f3673 100644 --- a/dlls/wininet/http.c +++ b/dlls/wininet/http.c @@ -29,6 +29,10 @@ #include "config.h" #include "wine/port.h" +#if defined(__MINGW32__) || defined (_MSC_VER) +#include +#endif + #include #ifdef HAVE_SYS_SOCKET_H # include diff --git a/dlls/wininet/internet.c b/dlls/wininet/internet.c index 5dbbc480b6b..94ff541d9df 100644 --- a/dlls/wininet/internet.c +++ b/dlls/wininet/internet.c @@ -31,6 +31,10 @@ #define MAXHOSTNAME 100 /* from http.c */ +#if defined(__MINGW32__) || defined (_MSC_VER) +#include +#endif + #include #include #include diff --git a/dlls/wininet/internet.h b/dlls/wininet/internet.h index bb694e91b3e..d8da781836b 100644 --- a/dlls/wininet/internet.h +++ b/dlls/wininet/internet.h @@ -43,7 +43,6 @@ #endif #if defined(__MINGW32__) || defined (_MSC_VER) -#include "ws2tcpip.h" #ifndef MSG_WAITALL #define MSG_WAITALL 0 #endif diff --git a/dlls/wininet/netconnection.c b/dlls/wininet/netconnection.c index e688a51fa3b..d8bdf45cda9 100644 --- a/dlls/wininet/netconnection.c +++ b/dlls/wininet/netconnection.c @@ -23,6 +23,10 @@ #include "config.h" #include "wine/port.h" +#if defined(__MINGW32__) || defined (_MSC_VER) +#include +#endif + #include #ifdef HAVE_POLL_H #include diff --git a/dlls/wininet/urlcache.c b/dlls/wininet/urlcache.c index fe3bc5bafe4..d1d54ae994a 100644 --- a/dlls/wininet/urlcache.c +++ b/dlls/wininet/urlcache.c @@ -25,15 +25,23 @@ #include "config.h" #include "wine/port.h" +#define NONAMELESSUNION +#define NONAMELESSSTRUCT + +#if defined(__MINGW32__) || defined (_MSC_VER) +#include +#endif + #include #include #include #include +#include +#ifdef HAVE_SYS_SOCKET_H +# include +#endif #include -#define NONAMELESSUNION -#define NONAMELESSSTRUCT - #include "windef.h" #include "winbase.h" #include "winuser.h" diff --git a/dlls/wininet/utility.c b/dlls/wininet/utility.c index ff914f41987..b68cf8d4a57 100644 --- a/dlls/wininet/utility.c +++ b/dlls/wininet/utility.c @@ -25,6 +25,10 @@ #include "config.h" #include "wine/port.h" +#if defined(__MINGW32__) || defined (_MSC_VER) +#include +#endif + #include #include #include