From: Hannes Magnusson Date: Sun, 17 Dec 2006 03:26:04 +0000 (+0000) Subject: Fix build X-Git-Tag: php-5.2.1RC2~180 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=93a606a192c41a88173f67a0a4601f8ce653b80e;p=php Fix build --- diff --git a/ext/filter/logical_filters.c b/ext/filter/logical_filters.c index 7cb651a31b..5779cc31c4 100644 --- a/ext/filter/logical_filters.c +++ b/ext/filter/logical_filters.c @@ -28,6 +28,11 @@ # include #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; \ @@ -609,7 +614,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; }