Kaydet (Commit) be2b907c authored tarafından Charles-François Natali's avatar Charles-François Natali

Issue #16836: Enable IPv6 support even if IPv6 is disabled on the build host.

üst 3a5fc4bc
...@@ -658,6 +658,8 @@ Tests ...@@ -658,6 +658,8 @@ Tests
Build Build
----- -----
- Issue #16836: Enable IPv6 support even if IPv6 is disabled on the build host.
- Issue #15923: fix a mistake in asdl_c.py that resulted in a TypeError after - Issue #15923: fix a mistake in asdl_c.py that resulted in a TypeError after
2801bf875a24 (see #15801). 2801bf875a24 (see #15801).
......
This diff is collapsed.
...@@ -2517,25 +2517,15 @@ AC_ARG_ENABLE(ipv6, ...@@ -2517,25 +2517,15 @@ AC_ARG_ENABLE(ipv6,
[ [
dnl the check does not work on cross compilation case... dnl the check does not work on cross compilation case...
AC_RUN_IFELSE([AC_LANG_SOURCE([[ /* AF_INET6 available check */ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ /* AF_INET6 available check */
#include <sys/types.h> #include <sys/types.h>
#include <sys/socket.h> #include <sys/socket.h>]],
main() [[int domain = AF_INET6;]])],[
{
if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
exit(1);
else
exit(0);
}
]])],[
AC_MSG_RESULT(yes) AC_MSG_RESULT(yes)
ipv6=yes ipv6=yes
],[ ],[
AC_MSG_RESULT(no) AC_MSG_RESULT(no)
ipv6=no ipv6=no
],[
AC_MSG_RESULT(no)
ipv6=no
]) ])
if test "$ipv6" = "yes"; then if test "$ipv6" = "yes"; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment