瀏覽代碼

Disable IPv6 by default only if MinGW 32bit build.

Tatsuhiro Tsujikawa 13 年之前
父節點
當前提交
9e8676af2c
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/OptionHandlerFactory.cc

+ 3 - 3
src/OptionHandlerFactory.cc

@@ -229,7 +229,7 @@ OptionHandlerFactory::createOptionHandlers()
     SharedHandle<OptionHandler> 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);