]> granicus.if.org Git - php/commitdiff
MFB: fix build
authorHannes Magnusson <bjori@php.net>
Sun, 17 Dec 2006 12:02:19 +0000 (12:02 +0000)
committerHannes Magnusson <bjori@php.net>
Sun, 17 Dec 2006 12:02:19 +0000 (12:02 +0000)
ext/filter/logical_filters.c

index e692279e25372eb11ea60f25299a23f811d061ad..8f6a6c9394842f5e5d35eeb1679aed87c9406c39 100644 (file)
 # include <arpa/inet.h>
 #endif
 
+#ifndef INADDR_NONE
+# define INADDR_NONE ((unsigned long int) -1)
+#endif
+
+
 /* {{{ FETCH_LONG_OPTION(var_name, option_name) */
 #define FETCH_LONG_OPTION(var_name, option_name)                                                                         \
        var_name = 0;                                                                                                        \
@@ -613,7 +618,7 @@ static int _php_filter_validate_ipv6_(char *str, int str_len TSRMLS_DC) /* {{{ *
                }
                ipv4++;
 
-               if (!_php_filter_validate_ipv4(ipv4, (str + str_len - ipv4), ip4elm TSRMLS_CC)) {
+               if (!_php_filter_validate_ipv4(ipv4, (str + str_len - ipv4), ip4elm)) {
                        return 0;
                }