summaryrefslogtreecommitdiff
path: root/ext/sockets
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2005-12-03 23:24:29 +0000
committerAntony Dovgal <tony2001@php.net>2005-12-03 23:24:29 +0000
commitd66e492c3d4b49ba0255f97d6497c912d2aae446 (patch)
treee75b73fbd01134970c596b2c3e9386d02c07a3d7 /ext/sockets
parent72e366657b43404d7c695b6a104f7d3eb1a2804c (diff)
downloadphp-git-d66e492c3d4b49ba0255f97d6497c912d2aae446.tar.gz
MFH: yet another compile warning
Diffstat (limited to 'ext/sockets')
-rw-r--r--ext/sockets/sockets.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/sockets/sockets.c b/ext/sockets/sockets.c
index d57efa7d03..9113264a01 100644
--- a/ext/sockets/sockets.c
+++ b/ext/sockets/sockets.c
@@ -1506,7 +1506,9 @@ PHP_FUNCTION(socket_get_option)
zval *arg1;
struct linger linger_val;
struct timeval tv;
+#ifdef PHP_WIN32
int timeout = 0;
+#endif
socklen_t optlen;
php_socket *php_sock;
int other_val;
@@ -1581,7 +1583,10 @@ PHP_FUNCTION(socket_set_option)
struct linger lv;
struct timeval tv;
php_socket *php_sock;
- int ov, optlen, retval, timeout;
+ int ov, optlen, retval;
+#ifdef PHP_WIN32
+ int timeout;
+#endif
long level, optname;
void *opt_ptr;