* pre-include winsock2.h
[m6w6/ext-http] / php_http.h
index 1234f9ba273418c9c5c1ecd699bf4c7ecb464e2c..e6191c820025001ba956a22e02e880e3ce06c889 100644 (file)
@@ -42,6 +42,11 @@ typedef struct {
 
 #ifdef HTTP_HAVE_CURL
 
+#ifdef PHP_WIN32
+#      define _WINSOCKAPI_
+#      include <winsock2.h>
+#endif
+
 #include <curl/curl.h>
 
 typedef struct {