wez Sat Sep 25 21:13:43 2004 EDT Modified files: (Branch: PHP_5_0) /php-src configure.in Log: MFH: configure check for getaddrinfo (Bug #30057) http://cvs.php.net/diff.php/php-src/configure.in?r1=1.514.2.9&r2=1.514.2.10&ty=u Index: php-src/configure.in diff -u php-src/configure.in:1.514.2.9 php-src/configure.in:1.514.2.10 --- php-src/configure.in:1.514.2.9 Thu Sep 23 17:56:15 2004 +++ php-src/configure.in Sat Sep 25 21:13:43 2004 @@ -1,4 +1,4 @@ -dnl ## $Id: configure.in,v 1.514.2.9 2004/09/23 21:56:15 andi Exp $ -*- sh -*- +dnl ## $Id: configure.in,v 1.514.2.10 2004/09/26 01:13:43 wez Exp $ -*- sh -*- dnl ## Process this file with autoconf to produce a configure script. divert(1) @@ -545,17 +545,20 @@ AC_TRY_RUN([ #include <netdb.h> #include <sys/types.h> +#ifndef AF_INET +# include <sys/socket.h> +#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); }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php