From f696bd11ac6e3b60211795dbe96aa90a6326da8f Mon Sep 17 00:00:00 2001 From: Hannes Magnusson Date: Sun, 17 Dec 2006 12:02:19 +0000 Subject: [PATCH] MFB: fix build --- ext/filter/logical_filters.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ext/filter/logical_filters.c b/ext/filter/logical_filters.c index e692279e25..8f6a6c9394 100644 --- a/ext/filter/logical_filters.c +++ b/ext/filter/logical_filters.c @@ -32,6 +32,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; \ @@ -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; } -- 2.50.1