summaryrefslogtreecommitdiff
path: root/main/php_network.h
diff options
context:
space:
mode:
Diffstat (limited to 'main/php_network.h')
-rw-r--r--main/php_network.h11
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