From 464d49d7dff8d6add8c2a6fee21fa11022577486 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Tue, 16 Jul 2024 11:26:34 +0200 Subject: [PATCH] Add detection of a handful of pthread _np functions --- meson/pthread-np/meson.build | 13 +++++++++++++ pdns/recursordist/meson.build | 1 + 2 files changed, 14 insertions(+) create mode 100644 meson/pthread-np/meson.build 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 -- 2.47.2