From 349ce76f9660850c0a15f660dff7cebb81c0abc8 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Fri, 28 Feb 2003 21:03:36 +0000 Subject: Tidy up stupid signed/unsigned issues with win32 by introducing a php_socket_t typedef. --- ext/standard/streamsfuncs.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'ext/standard/streamsfuncs.c') diff --git a/ext/standard/streamsfuncs.c b/ext/standard/streamsfuncs.c index 110058ac26..4e46d7694a 100644 --- a/ext/standard/streamsfuncs.c +++ b/ext/standard/streamsfuncs.c @@ -28,10 +28,13 @@ #include "ext/standard/basic_functions.h" #include "php_ini.h" #include "streamsfuncs.h" - +#include "php_network.h" +#include "php_string.h" #ifndef PHP_WIN32 #define php_select(m, r, w, e, t) select(m, r, w, e, t) +#else +#include "win32/select.h" #endif static php_stream_context *decode_context_param(zval *contextresource TSRMLS_DC); @@ -342,11 +345,11 @@ PHP_FUNCTION(stream_get_wrappers) /* }}} */ /* {{{ stream_select related functions */ -static int stream_array_to_fd_set(zval *stream_array, fd_set *fds, int *max_fd TSRMLS_DC) +static int stream_array_to_fd_set(zval *stream_array, fd_set *fds, php_socket_t *max_fd TSRMLS_DC) { zval **elem; php_stream *stream; - int this_fd; + php_socket_t this_fd; if (Z_TYPE_P(stream_array) != IS_ARRAY) { return 0; -- cgit v1.2.1