summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/thread/meson.build6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/thread/meson.build b/src/thread/meson.build
index f7d28ec04..241a3ed4e 100644
--- a/src/thread/meson.build
+++ b/src/thread/meson.build
@@ -1,10 +1,14 @@
+threads_dep = dependency('threads')
+
+conf.set('HAVE_PTHREAD_SETNAME_NP', compiler.has_function('pthread_setname_np', dependencies: threads_dep))
+
thread = static_library(
'thread',
'Util.cxx',
'Thread.cxx',
include_directories: inc,
dependencies: [
- dependency('threads')
+ threads_dep,
],
)