summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2005-12-03 23:24:07 +0000
committerAntony Dovgal <tony2001@php.net>2005-12-03 23:24:07 +0000
commit58c6a0da276e97c799be57d54f27e68fb78f83d1 (patch)
treed62955022e890d4b84c46b184870d02acb0c6ba3
parente9f068a7d60e1a195133a25c5713c2a137a67f70 (diff)
downloadphp-git-58c6a0da276e97c799be57d54f27e68fb78f83d1.tar.gz
yet another compile warning
-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 36a35efd53..9987856058 100644
--- a/ext/sockets/sockets.c
+++ b/ext/sockets/sockets.c
@@ -1504,7 +1504,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;
@@ -1579,7 +1581,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;