From d3ff68d28d45f0b13253f6ac01a9e4a6fdab6f1d Mon Sep 17 00:00:00 2001 From: Jean-Francois Simoneau Date: Sat, 15 Aug 2026 08:48:39 -0400 Subject: [PATCH] Always use meson option non_blocking_getaddrinfo (#2537) * Always use meson option non_blocking_getaddrinfo * Replace not .disabled() with .allowed() for clarity --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 3cd31c2..794d0ab 100644 --- a/meson.build +++ b/meson.build @@ -107,7 +107,7 @@ if host_machine.system() == 'windows' elif host_machine.system() == 'darwin' async_ns_dep = dependency('appleframeworks', modules: ['CFNetwork', 'CoreFoundation'], required: async_ns_opt) else - has_gai_a = cxx.has_function('getaddrinfo_a', args: '-D_GNU_SOURCE') + has_gai_a = async_ns_opt.allowed() and cxx.has_function('getaddrinfo_a', args: '-D_GNU_SOURCE') if has_gai_a async_ns_dep = declare_dependency() else