From 93a606a192c41a88173f67a0a4601f8ce653b80e Mon Sep 17 00:00:00 2001 From: Hannes Magnusson Date: Sun, 17 Dec 2006 03:26:04 +0000 Subject: [PATCH] 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 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; } -- 2.50.1