summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2003-07-02 01:35:39 +0000
committerWez Furlong <wez@php.net>2003-07-02 01:35:39 +0000
commit989500b347bd9720c1bc0514a642eaf62c984435 (patch)
tree532f5473ab7792b9f43a3950cd31fad5e2b95aed
parent1b50ca4df67b0a274cbc92dfeaad647343fb06bd (diff)
downloadphp-git-989500b347bd9720c1bc0514a642eaf62c984435.tar.gz
socklen_t needs this.
We might need some more magic to ensure that socklen_t gets defined in the correct places; lets see if any more problems arise...
-rw-r--r--main/streams/php_stream_transport.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/main/streams/php_stream_transport.h b/main/streams/php_stream_transport.h
index e27e231bdf..7c0f320a9c 100644
--- a/main/streams/php_stream_transport.h
+++ b/main/streams/php_stream_transport.h
@@ -18,6 +18,10 @@
/* $Id$ */
+#if HAVE_SYS_SOCKET_H
+# include <sys/socket.h>
+#endif
+
typedef php_stream *(php_stream_transport_factory_func)(const char *proto, long protolen,
char *resourcename, long resourcenamelen,
const char *persistent_id, int options, int flags,