aboutsummaryrefslogtreecommitdiffstats
path: root/meson.build
diff options
context:
space:
mode:
authorGiulio Benetti <giulio.benetti@benettiengineering.com>2025-04-23 14:28:29 +0200
committerBernd Schubert <bernd@bsbernd.com>2025-04-23 15:00:07 +0200
commit7c60178b42a301c3cd068d38d5606c9b044ba41c (patch)
tree7d0f0633ded326d72bb198d1d1e71b3d17d70076 /meson.build
parent3863da58b1f7904675ca050434d8219bc410f34a (diff)
downloadlibfuse-7c60178b42a301c3cd068d38d5606c9b044ba41c.tar.gz
Check if pthread_setname_np() exists before use it
Since pthread_setname_np() is the only pthread function that requires NPTL and it basically only set thread name, let's check if pthread_setname_np() does exist, otherwise let's not call pthread_setname_np() to shrink dependencies. Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build3
1 files changed, 2 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index f28df3d..a3aa735 100644
--- a/meson.build
+++ b/meson.build
@@ -72,7 +72,8 @@ private_cfg.set_quoted('PACKAGE_VERSION', meson.project_version())
# Test for presence of some functions
test_funcs = [ 'fork', 'fstatat', 'openat', 'readlinkat', 'pipe2',
'splice', 'vmsplice', 'posix_fallocate', 'fdatasync',
- 'utimensat', 'copy_file_range', 'fallocate', 'static_assert' ]
+ 'utimensat', 'copy_file_range', 'fallocate', 'static_assert',
+ 'pthread_setname_np' ]
foreach func : test_funcs
private_cfg.set('HAVE_' + func.to_upper(),
cc.has_function(func, prefix: include_default, args: args_default))