]> granicus.if.org Git - php/commitdiff
Fix --disable-ipv6 support on Windows
authorChristoph M. Becker <cmbecker69@gmx.de>
Wed, 20 May 2020 12:59:11 +0000 (14:59 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Wed, 20 May 2020 13:13:53 +0000 (15:13 +0200)
`HAVE_IPV6` and `HAVE_GAI_STRERROR` are supposed to be undefined now,
if not supported.

win32/build/config.w32

index 62dbeb40d9b0872fb685aef165322e907e6d3fee..fedb85d6b553303a5db14e70e93932e4c8804a46 100644 (file)
@@ -289,10 +289,10 @@ if (PHP_IPV6 == "yes") {
 }
 if (main_network_has_ipv6) {
        STDOUT.WriteLine("Enabling IPv6 support");
+       AC_DEFINE('HAVE_GAI_STRERROR', 1);
+       AC_DEFINE('HAVE_IPV6', 1);
 }
 AC_DEFINE('HAVE_GETADDRINFO', main_network_has_ipv6);
-AC_DEFINE('HAVE_GAI_STRERROR', main_network_has_ipv6);
-AC_DEFINE('HAVE_IPV6', main_network_has_ipv6);
 
 /* this allows up to 256 sockets to be select()ed in a single
  * call to select(), instead of the usual 64 */