- use gethostname() if available in http_build_url()
[m6w6/ext-http] / php_http.h
index 7e82c04037a7073e6b6ea59561f1fe0b27c7baa5..4aa2679dd2ccb5a7b76574c7422f0ba43085dd7c 100644 (file)
@@ -47,6 +47,9 @@
 #      elif defined(HAVE_NETDB_H)
 #              define HTTP_HAVE_NETDB
 #              include <netdb.h>
+#              ifdef HAVE_UNISTD_H
+#                      include <unistd.h>
+#              endif
 #      endif
 #endif