diff options
author | Jon Parise <jon@php.net> | 2001-11-06 14:35:26 +0000 |
---|---|---|
committer | Jon Parise <jon@php.net> | 2001-11-06 14:35:26 +0000 |
commit | f8fb5e5d9848599aa3768815c56f13d14e4786ff (patch) | |
tree | d0a28211fd97b334f93a7fe18e17e25092c1ba92 | |
parent | ef537403e682950acfff8fce19fbad8ce4176bab (diff) | |
download | php-git-f8fb5e5d9848599aa3768815c56f13d14e4786ff.tar.gz |
Include <sys/socket.h> for 'struct sockaddr'.
# This fixes my FreeBSD build.
-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); |