summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorElizabeth Marie Smith <auroraeosrose@php.net>2007-10-10 23:23:54 +0000
committerElizabeth Marie Smith <auroraeosrose@php.net>2007-10-10 23:23:54 +0000
commit9e0894fa216f24b529f507d7aff2c270323e94e7 (patch)
tree8c76b12d66523a921345fdf865dfb2b37ae2ab3b /main
parentd768a03a12f4e97bb3be188b3c6518581c2ac8ae (diff)
downloadphp-git-9e0894fa216f24b529f507d7aff2c270323e94e7.tar.gz
MFB
Diffstat (limited to 'main')
-rw-r--r--main/network.c3
-rw-r--r--main/php_network.h2
2 files changed, 5 insertions, 0 deletions
diff --git a/main/network.c b/main/network.c
index 542312ce79..648a1c32a4 100644
--- a/main/network.c
+++ b/main/network.c
@@ -90,6 +90,9 @@ int inet_aton(const char *, struct in_addr *);
# define SOCK_ERR INVALID_SOCKET
# define SOCK_CONN_ERR SOCKET_ERROR
# define PHP_TIMEOUT_ERROR_VALUE WSAETIMEDOUT
+
+struct in6_addr in6addr_any = {0}; /* IN6ADDR_ANY_INIT; */
+
#else
# define SOCK_ERR -1
# define SOCK_CONN_ERR -1
diff --git a/main/php_network.h b/main/php_network.h
index 9414f6210b..99392c691f 100644
--- a/main/php_network.h
+++ b/main/php_network.h
@@ -121,12 +121,14 @@ typedef struct _php_pollfd {
PHPAPI int php_poll2(php_pollfd *ufds, unsigned int nfds, int timeout);
+#ifndef POLLIN
# define POLLIN 0x0001 /* There is data to read */
# define POLLPRI 0x0002 /* There is urgent data to read */
# define POLLOUT 0x0004 /* Writing now will not block */
# define POLLERR 0x0008 /* Error condition */
# define POLLHUP 0x0010 /* Hung up */
# define POLLNVAL 0x0020 /* Invalid request: fd not open */
+#endif
# ifndef PHP_USE_POLL_2_EMULATION
# define PHP_USE_POLL_2_EMULATION 1