summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-11-19 15:56:30 +0100
committerMax Kellermann <max@musicpd.org>2018-11-19 16:33:14 +0100
commit2e450bbf959e7b72894c5037a2d46523556c8b72 (patch)
treedb1e55076fa3a11ead5b482421883f13390db16a
parent303b3071e42d5d762f2fcae25843b67533e2e520 (diff)
src/thread/meson.build: detect pthread_setname_np()
This compile-time check got lost during the Meson transition.
-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,
],
)