]> granicus.if.org Git - php/commitdiff
MFH: fix bug #18570
authorfoobar <sniper@php.net>
Thu, 25 Jul 2002 17:38:01 +0000 (17:38 +0000)
committerfoobar <sniper@php.net>
Thu, 25 Jul 2002 17:38:01 +0000 (17:38 +0000)
configure.in

index f973595b37dfba819a12b900df889ed6f3abc28b..c8476d864307ce761ccc783161d4d85bfd33f809 100644 (file)
@@ -435,10 +435,10 @@ fi
 
 dnl Check for IPv6 support
 AC_CACHE_CHECK([for IPv6 support], ac_cv_ipv6_support,
-[AC_TRY_COMPILE([ #include <sys/types.h>
+[AC_TRY_LINK([ #include <sys/types.h>
 #include <sys/socket.h>
-#include <netinet/in.h>], [struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s],
-  ac_cv_ipv6_support=yes, ac_cv_ipv6_support=no)])
+#include <netinet/in.h>], [struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;],
+  [ac_cv_ipv6_support=yes], [ac_cv_ipv6_support=no])])
 if test "$ac_cv_ipv6_support" = yes; then
   AC_DEFINE(HAVE_IPV6,1,[Whether you have IPv6 support])
 fi