--- configure.in.orig Sun Nov 24 03:59:24 2002 +++ configure.in Fri Sep 2 16:04:11 2005 @@ -18,7 +18,9 @@ AC_CHECK_FUNCS(getaddrinfo, , AC_MSG_ERROR([Your system doesn't support IPv6.])) AC_MSG_CHECKING([for AF_INET6]) -AC_TRY_COMPILE([#include ], [int x = AF_INET6;], [ +AC_TRY_COMPILE([#include +#include +#include ], [int x = AF_INET6;], [ AC_MSG_RESULT(yes) ], [ AC_MSG_RESULT(no)