From 9e8676af2c7751f0288d0d04905a44cb93f6d8f9 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 8 Apr 2012 17:45:33 +0900 Subject: [PATCH] Disable IPv6 by default only if MinGW 32bit build. --- src/OptionHandlerFactory.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/OptionHandlerFactory.cc b/src/OptionHandlerFactory.cc index f575d872..dcb73b65 100644 --- a/src/OptionHandlerFactory.cc +++ b/src/OptionHandlerFactory.cc @@ -229,7 +229,7 @@ OptionHandlerFactory::createOptionHandlers() SharedHandle op(new BooleanOptionHandler (PREF_DISABLE_IPV6, TEXT_DISABLE_IPV6, -#ifdef __MINGW32__ +#if defined(__MINGW32__) && !defined(__MINGW64__) // Disable IPv6 by default for // MinGW build. This is because // numerous IPv6 routines are @@ -237,9 +237,9 @@ OptionHandlerFactory::createOptionHandlers() // getaddrinfo failed in // configure. A2_V_TRUE, -#else // !__MINGW32__ +#else // !defined(__MINGW32__) || defined(__MINGW64__) A2_V_FALSE, -#endif // !__MINGW32__ +#endif // !defined(__MINGW32__) || defined(__MINGW64__) OptionHandler::OPT_ARG)); op->addTag(TAG_ADVANCED); handlers.push_back(op);