summaryrefslogtreecommitdiff
path: root/main/php_network.h
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2009-01-07 20:21:46 +0000
committerFelipe Pena <felipe@php.net>2009-01-07 20:21:46 +0000
commit7c989115c233f510aae1d37ef77653b4bce4753f (patch)
tree6ca29ecc51c90288f634f3710570b4e350db9840 /main/php_network.h
parentc7ef31aefb6f127af1586330b31ffc00e0a6e949 (diff)
downloadphp-git-7c989115c233f510aae1d37ef77653b4bce4753f.tar.gz
MFH:
- Added check for EWOULDBLOCK - Using EWOULDBLOCK instead of EAGAIN by portability issues (Related to #46917)
Diffstat (limited to 'main/php_network.h')
-rw-r--r--main/php_network.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/main/php_network.h b/main/php_network.h
index 02e2b8ef6b..9f552f352b 100644
--- a/main/php_network.h
+++ b/main/php_network.h
@@ -40,6 +40,10 @@
# define ftruncate(a, b) chsize(a, b)
#endif /* defined(PHP_WIN32) */
+#ifndef EWOULDBLOCK
+# define EWOULDBLOCK EAGAIN
+#endif
+
#ifdef PHP_WIN32
#define php_socket_errno() WSAGetLastError()
#else