]> granicus.if.org Git - php/commitdiff
Include <sys/socket.h> for 'struct sockaddr'.
authorJon Parise <jon@php.net>
Tue, 6 Nov 2001 14:35:26 +0000 (14:35 +0000)
committerJon Parise <jon@php.net>
Tue, 6 Nov 2001 14:35:26 +0000 (14:35 +0000)
# This fixes my FreeBSD build.

ext/sockets/php_sockets.h

index c6ad73824a4ba4c76754c67e39f8c67e28a1c984..f2504307741641f0189b3ca14eabc9c9e05355d9 100644 (file)
@@ -34,7 +34,9 @@ extern zend_module_entry sockets_module_entry;
 #include <winsock.h>
 #else
 #define PHP_SOCKETS_API
-#include <netinet/in.h>
+#if HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
 #endif
 
 PHP_MINIT_FUNCTION(sockets);