summaryrefslogtreecommitdiff
path: root/ext/sockets/php_sockets.h
diff options
context:
space:
mode:
authorGustavo Lopes <glopes@nebm.ist.utl.pt>2013-01-31 14:01:31 +0100
committerGustavo Lopes <glopes@nebm.ist.utl.pt>2013-02-02 16:38:09 +0100
commit7066cc726713f0eaf79db9eac0da90bc6d8740b4 (patch)
tree5da60ccf2d5ffb3784a0517a789c2385e0f22c36 /ext/sockets/php_sockets.h
parent8561680533c7fd6b66497ed10246fe9e57e9d351 (diff)
downloadphp-git-7066cc726713f0eaf79db9eac0da90bc6d8740b4.tar.gz
send/recvmsg() support for Windows
Diffstat (limited to 'ext/sockets/php_sockets.h')
-rw-r--r--ext/sockets/php_sockets.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/sockets/php_sockets.h b/ext/sockets/php_sockets.h
index 78da0c29e6..a5699c7514 100644
--- a/ext/sockets/php_sockets.h
+++ b/ext/sockets/php_sockets.h
@@ -26,11 +26,13 @@
#if HAVE_SOCKETS
+#include <php.h>
+
extern zend_module_entry sockets_module_entry;
#define phpext_sockets_ptr &sockets_module_entry
#ifdef PHP_WIN32
-#include <winsock.h>
+#include <Winsock2.h>
#else
#if HAVE_SYS_SOCKET_H
#include <sys/socket.h>