diff options
author | Wez Furlong <wez@php.net> | 2002-10-13 23:43:21 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2002-10-13 23:43:21 +0000 |
commit | 0bcd2ccb2cb487ac47a065a9c07c85e7f21ebbbd (patch) | |
tree | b7d5b21e91e93eec2a1f38a25b6f7befdd17c5c9 /main/php_network.h | |
parent | bc0948bbdaa863420c1663cc6f3679be3e4bb2eb (diff) | |
download | php-git-0bcd2ccb2cb487ac47a065a9c07c85e7f21ebbbd.tar.gz |
A much better probable fix for #16114.
Diffstat (limited to 'main/php_network.h')
-rw-r--r-- | main/php_network.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/main/php_network.h b/main/php_network.h index 4e6ae61ad8..05fcdead79 100644 --- a/main/php_network.h +++ b/main/php_network.h @@ -27,6 +27,9 @@ # undef FD_SETSIZE # include "arpa/inet.h" # define socklen_t unsigned int +# define SHUT_RD SD_RECEIVE +# define SHUT_WR SD_SEND +# define SHUT_RDWR SD_BOTH #else # undef closesocket # define closesocket close @@ -62,6 +65,14 @@ PHPAPI char *php_socket_strerror(long err, char *buf, size_t bufsize); #include <sys/socket.h> #endif +/* These are here, rather than with the win32 counterparts above, + * since <sys/socket.h> defines them. */ +#ifndef SHUT_RD +# define SHUT_RD 0 +# define SHUT_WR 1 +# define SHUT_RDWR 2 +#endif + #ifdef HAVE_SYS_TIME_H #include <sys/time.h> #endif |