From: Otto Moerbeek Date: Tue, 16 Jul 2024 09:26:34 +0000 (+0200) Subject: Add detection of a handful of pthread _np functions X-Git-Tag: rec-5.2.0-alpha1~173^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F14458%2Fhead;p=thirdparty%2Fpdns.git Add detection of a handful of pthread _np functions --- diff --git a/meson/pthread-np/meson.build b/meson/pthread-np/meson.build new file mode 100644 index 0000000000..7dc789222d --- /dev/null +++ b/meson/pthread-np/meson.build @@ -0,0 +1,13 @@ +funcs = [ + 'pthread_setaffinity_np', + 'pthread_getattr_np', + 'pthread_get_stackaddr_np', + 'pthread_get_stacksize_np', +] + +foreach func: funcs + found = cxx.has_function(func, dependencies: dep_threads) + define = 'HAVE_' + func.to_upper() + conf.set(define, found, description: 'Have ' + func) + summary(func, found, bool_yn: true, section: 'POSIX Threads') +endforeach diff --git a/pdns/recursordist/meson.build b/pdns/recursordist/meson.build index 9c92a53b54..08bcd6498c 100644 --- a/pdns/recursordist/meson.build +++ b/pdns/recursordist/meson.build @@ -37,6 +37,7 @@ subdir('meson' / 'timet-sign') # Check the sign of time_t subdir('meson' / 'atomics') # Check atomics support subdir('meson' / 'pthread-headers') # Check pthread headers subdir('meson' / 'pthread-setname') # Pthread setname madness +subdir('meson' / 'pthread-np') # Pthread _np functions subdir('meson' / 'strerror') # Strerror_r subdir('meson' / 'lua') # Lua subdir('meson' / 'hardening') # Hardening