From ef39da59731afd37f5e511caf1cf6ce71fd0d38b Mon Sep 17 00:00:00 2001 From: Avuton Olrich Date: Sat, 10 Dec 2011 18:37:45 -0800 Subject: configure/utils: Add ipv6 support for mingw build --- configure.ac | 4 ++++ src/utils.c | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 1b1aa88df..4d274bfa2 100644 --- a/configure.ac +++ b/configure.ac @@ -446,7 +446,11 @@ if test x$enable_ipv6 = xyes; then AC_EGREP_CPP([AP_maGiC_VALUE], [ #include +#ifdef WIN32 +#include +#else #include +#endif #include #ifdef PF_INET6 #ifdef AF_INET6 diff --git a/src/utils.c b/src/utils.c index 53494cc5d..6e85dd5ff 100644 --- a/src/utils.c +++ b/src/utils.c @@ -33,7 +33,11 @@ #include #endif -#ifdef HAVE_IPV6 +#if HAVE_IPV6 && WIN32 +#include +#endif + +#if HAVE_IPV6 && ! WIN32 #include #endif -- cgit v1.2.3