diff options
author | Wez Furlong <wez@php.net> | 2003-02-28 21:03:36 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2003-02-28 21:03:36 +0000 |
commit | 349ce76f9660850c0a15f660dff7cebb81c0abc8 (patch) | |
tree | cd03704ec5665e40106e5c509e3fb313c4423c50 /win32 | |
parent | 1ad304c2c529905c9a157afa8d3bb57f26481f7e (diff) | |
download | php-git-349ce76f9660850c0a15f660dff7cebb81c0abc8.tar.gz |
Tidy up stupid signed/unsigned issues with win32 by introducing a php_socket_t typedef.
Diffstat (limited to 'win32')
-rw-r--r-- | win32/select.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/win32/select.c b/win32/select.c index 63dcc165f9..579ed3edee 100644 --- a/win32/select.c +++ b/win32/select.c @@ -17,6 +17,7 @@ */ #include "php.h" +#include "php_network.h" /* $Id$ */ @@ -24,13 +25,14 @@ * get the OS file handle from regular fd's and sockets and then use WaitForMultipleObjects(). * This implementation is not as feature-full as posix select, but it works for our purposes */ -PHPAPI int php_select(int max_fd, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *tv) +PHPAPI int php_select(php_socket_t max_fd, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *tv) { HANDLE *handles; DWORD waitret; DWORD ms_total; - int i, f, s, fd_count = 0, sock_count = 0; + int f, s, fd_count = 0, sock_count = 0; int retval; + php_socket_t i; fd_set ard, awr, aex; /* active fd sets */ for (i = 0; i < max_fd; i++) { |