Procházet zdrojové kódy

Always use meson option non_blocking_getaddrinfo (#2537)

* Always use meson option non_blocking_getaddrinfo

* Replace not .disabled() with .allowed() for clarity
Jean-Francois Simoneau před 1 týdnem
rodič
revize
d3ff68d28d
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      meson.build

+ 1 - 1
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