Removed port and scheme guessing of http\Url for portability
[m6w6/ext-http] / php_http_api.h
index 9e0dc6ca69bc39fa7eb80263fbf78a24f56a378a..091fd6590f8243fd0fe6d70c800f3a986c9c7b1f 100644 (file)
@@ -58,17 +58,14 @@ typedef int STATUS;
 
 #ifdef PHP_WIN32
 #      define CURL_STATICLIB
-#      define PHP_HTTP_HAVE_NETDB
 #      include <winsock2.h>
-#elif defined(HAVE_NETDB_H)
-#      define PHP_HTTP_HAVE_NETDB
-#      include <netdb.h>
+#else
+#      ifdef HAVE_NETDB_H
+#              include <netdb.h>
+#      endif
 #      ifdef HAVE_UNISTD_H
 #              include <unistd.h>
 #      endif
-#      ifdef HAVE_ERRNO_H
-#              include <errno.h>
-#      endif
 #endif
 
 #include <ctype.h>