2009-07-08 Brent Fulgham <bfulgham@webkit.org>
authorbfulgham@webkit.org <bfulgham@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 8 Jul 2009 18:01:57 +0000 (18:01 +0000)
committerbfulgham@webkit.org <bfulgham@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 8 Jul 2009 18:01:57 +0000 (18:01 +0000)
        Build fix: Add missing #includes for Windows (cURL) build.
        The <winsock2.h> and <windows.h> headers were not being
        included in Windows cURL builds.

        * platform/network/ResourceHandleInternal.h:
        * platform/network/curl/ResourceHandleManager.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@45630 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/platform/network/ResourceHandleInternal.h
WebCore/platform/network/curl/ResourceHandleManager.h

index f6c4b41..188db9b 100644 (file)
@@ -1,3 +1,12 @@
+2009-07-08  Brent Fulgham  <bfulgham@webkit.org>
+
+        Build fix: Add missing #includes for Windows (cURL) build.
+        The <winsock2.h> and <windows.h> headers were not being
+        included in Windows cURL builds.
+
+        * platform/network/ResourceHandleInternal.h:
+        * platform/network/curl/ResourceHandleManager.h:
+
 2009-07-08  Shinichiro Hamaji  <hamaji@chromium.org>
 
         Reviewed by David Kilzer.
index f1a02fe..676129a 100644 (file)
@@ -35,7 +35,7 @@
 #include <CFNetwork/CFURLConnectionPriv.h>
 #endif
 
-#if USE(WININET)
+#if USE(WININET) || (USE(CURL) && PLATFORM(WIN))
 #include <winsock2.h>
 #include <windows.h>
 #endif
index f3ad234..4e5f681 100644 (file)
 #include "Timer.h"
 #include "ResourceHandleClient.h"
 
+#if defined(WIN32) || defined(_WIN32)
+#include <winsock2.h>
+#include <windows.h>
+#endif
+
 #include <curl/curl.h>
 #include <wtf/Vector.h>