]> granicus.if.org Git - php/commitdiff
socklen_t needs this.
authorWez Furlong <wez@php.net>
Wed, 2 Jul 2003 01:35:39 +0000 (01:35 +0000)
committerWez Furlong <wez@php.net>
Wed, 2 Jul 2003 01:35:39 +0000 (01:35 +0000)
We might need some more magic to ensure that socklen_t gets defined in
the correct places; lets see if any more problems arise...

main/streams/php_stream_transport.h

index e27e231bdf92d6c5d2a43d1758f350bbadccc0fc..7c0f320a9c4b55265de1cab2a7612806b9b0adb5 100644 (file)
 
 /* $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,