summaryrefslogtreecommitdiff
path: root/ext/sockets/php_sockets.h
diff options
context:
space:
mode:
authorKalle Sommer Nielsen <kalle@php.net>2009-01-23 15:48:58 +0000
committerKalle Sommer Nielsen <kalle@php.net>2009-01-23 15:48:58 +0000
commit6776d26fdcfd53479bb479e0211303337cd5c324 (patch)
tree064407b8110f9b9961af2ec1447b8458d9ad7426 /ext/sockets/php_sockets.h
parent8a81441f6a2858859f065ab7252e6e017e797e04 (diff)
downloadphp-git-6776d26fdcfd53479bb479e0211303337cd5c324.tar.gz
Windows support for stream_socket_pair(), by moving the socketpair() implementation from ext/sockets to win32/
Diffstat (limited to 'ext/sockets/php_sockets.h')
-rw-r--r--ext/sockets/php_sockets.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/ext/sockets/php_sockets.h b/ext/sockets/php_sockets.h
index f0c9cc5203..3db96dc2ab 100644
--- a/ext/sockets/php_sockets.h
+++ b/ext/sockets/php_sockets.h
@@ -43,7 +43,7 @@ PHP_RSHUTDOWN_FUNCTION(sockets);
PHP_FUNCTION(socket_select);
PHP_FUNCTION(socket_create_listen);
-#if defined(HAVE_SOCKETPAIR) || defined(PHP_WIN32)
+#ifdef HAVE_SOCKETPAIR
PHP_FUNCTION(socket_create_pair);
#endif
PHP_FUNCTION(socket_accept);
@@ -84,6 +84,13 @@ typedef struct {
int blocking;
} php_socket;
+#ifdef PHP_WIN32
+struct sockaddr_un {
+ short sun_family;
+ char sun_path[108];
+};
+#endif
+
/* Prototypes */
#ifdef ilia_0 /* not needed, only causes a compiler warning */
static int php_open_listen_sock(php_socket **php_sock, int port, int backlog TSRMLS_DC);