* fixing PHP5 snap build
authorMichael Wallner <mike@php.net>
Tue, 8 Feb 2005 18:49:37 +0000 (18:49 +0000)
committerMichael Wallner <mike@php.net>
Tue, 8 Feb 2005 18:49:37 +0000 (18:49 +0000)
http.c

diff --git a/http.c b/http.c
index e81deffd554b40bfeeb90e4650df77c283997858..2142eab9a9068bebb6c2f06d8e1fbfe4ce395b47 100644 (file)
--- a/http.c
+++ b/http.c
 #include "php_http_api.h"
 
 #if defined(HAVE_CURL) && HAVE_CURL
+#      ifdef PHP_WIN32
+#      include <winsock2.h>
+#      include <sys/types.h>
+#      endif
 #include <curl/curl.h>
 #endif
 
@@ -481,7 +485,7 @@ PHP_FUNCTION(http_redirect)
                sprintf(RED, "Redirecting to <a href=\"%s\">%s</a>.\n", URI, URI);
        }
        efree(URI);
-       
+
        if ((SUCCESS == http_send_header(LOC)) && (SUCCESS == http_send_status((permanent ? 301 : 302)))) {
                php_body_write(RED, strlen(RED) TSRMLS_CC);
                RETURN_TRUE;