]> granicus.if.org Git - php/commitdiff
yet another compile warning
authorAntony Dovgal <tony2001@php.net>
Sat, 3 Dec 2005 23:24:07 +0000 (23:24 +0000)
committerAntony Dovgal <tony2001@php.net>
Sat, 3 Dec 2005 23:24:07 +0000 (23:24 +0000)
ext/sockets/sockets.c

index 36a35efd5321c898e6c1e6b663be969bf6e2afaf..9987856058aa62e45df822c21e96d31f16a1ebe4 100644 (file)
@@ -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;