From: Jon Parise Date: Tue, 6 Nov 2001 14:35:26 +0000 (+0000) Subject: Include for 'struct sockaddr'. X-Git-Tag: ChangeLog~406 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f8fb5e5d9848599aa3768815c56f13d14e4786ff;p=php Include for 'struct sockaddr'. # This fixes my FreeBSD build. --- diff --git a/ext/sockets/php_sockets.h b/ext/sockets/php_sockets.h index c6ad73824a..f250430774 100644 --- a/ext/sockets/php_sockets.h +++ b/ext/sockets/php_sockets.h @@ -34,7 +34,9 @@ extern zend_module_entry sockets_module_entry; #include #else #define PHP_SOCKETS_API -#include +#if HAVE_SYS_SOCKET_H +#include +#endif #endif PHP_MINIT_FUNCTION(sockets);