diff options
author | Hannes Magnusson <bjori@php.net> | 2006-12-17 03:26:04 +0000 |
---|---|---|
committer | Hannes Magnusson <bjori@php.net> | 2006-12-17 03:26:04 +0000 |
commit | 93a606a192c41a88173f67a0a4601f8ce653b80e (patch) | |
tree | ed46bb412aa070293873e51e0903f2b321e83746 | |
parent | b75d079c8963e5244dd979d9a6e47d4d2563117b (diff) | |
download | php-git-93a606a192c41a88173f67a0a4601f8ce653b80e.tar.gz |
Fix build
-rw-r--r-- | ext/filter/logical_filters.c | 7 |
1 files changed, 6 insertions, 1 deletions
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 <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; \ @@ -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; } |