From 70e1858a929058c3392ce5f518dcfd8646cd53ba Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sun, 26 Sep 2004 01:17:42 +0000 Subject: [PATCH] MFH: fix for #30057 --- NEWS | 1 + configure.in | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index d5beb4b8b4..28ee8419aa 100644 --- a/NEWS +++ b/NEWS @@ -3,6 +3,7 @@ PHP 4 NEWS ?? ??? 2004, Version 4.3.10 - Backported Marcus' foreach() speedup patch from PHP 5.x. (Derick) - Fixed potential problems with unserializing invalid serialize data. (Marcus) +- Fixed bug #30057 (did not detect IPV6 on FreeBSD 4.1). (Wez) - Fixed bug #29805 (HTTP Authentication Issues). (Uwe Schindler) - Fixed bug #28325 (Circular references not properly serialised). (Moriyoshi) - Fixed bug #27469 (serialize() objects of incomplete class). (Dmitry) diff --git a/configure.in b/configure.in index c1b459d6eb..b282d7e6e0 100644 --- a/configure.in +++ b/configure.in @@ -528,17 +528,20 @@ AC_CACHE_CHECK([for getaddrinfo], ac_cv_func_getaddrinfo, AC_TRY_RUN([ #include #include +#ifndef AF_INET +# include +#endif int main(void) { struct addrinfo *ai, *pai, hints; memset(&hints, 0, sizeof(hints)); hints.ai_flags = AI_NUMERICHOST; - if (getaddrinfo("127.0.0.1", NULL, &hints, &ai) < 0) { + if (getaddrinfo("127.0.0.1", 0, &hints, &ai) < 0) { exit(1); } - if (ai == NULL) { + if (ai == 0) { exit(1); } -- 2.40.0