From 2e450bbf959e7b72894c5037a2d46523556c8b72 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 19 Nov 2018 15:56:30 +0100 Subject: [PATCH] src/thread/meson.build: detect pthread_setname_np() This compile-time check got lost during the Meson transition. --- src/thread/meson.build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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, ], )