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.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/main/php_network.h b/main/php_network.h
index 98bdffa703..a9a4bc1623 100644
--- a/main/php_network.h
+++ b/main/php_network.h
@@ -37,6 +37,11 @@
#define shutdown(s,n) /* nothing */
#endif
+#ifdef PHP_WIN32
+#define EWOULDBLOCK WSAEWOULDBLOCK
+# define fsync _commit
+# define ftruncate(a, b) chsize(a, b)
+#endif /* defined(PHP_WIN32) */
#ifdef HAVE_NETINET_IN_H
# include <netinet/in.h>
@@ -54,6 +59,10 @@
#include <openssl/ssl.h>
#endif
+#ifdef HAVE_STDDEF_H
+#include <stddef.h>
+#endif
+
#ifdef HAVE_SOCKADDR_STORAGE
typedef struct sockaddr_storage php_sockaddr_storage;
#else