diff options
-rw-r--r-- | ext/sockets/php_sockets.h | 4 |
1 files changed, 3 insertions, 1 deletions
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 <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); |