diff options
author | Luis Henriques <luis@igalia.com> | 2025-05-22 15:55:27 +0100 |
---|---|---|
committer | Bernd Schubert <bernd@bsbernd.com> | 2025-05-22 22:34:25 +0200 |
commit | cea9b33acc13e7683e3646fca04953d14e3211b7 (patch) | |
tree | 0ba364a0d6b8750a03cd405f3f35885323d7f247 /lib/util.h | |
parent | baadab0492a495fda98216b351976d2e5d6d0866 (diff) | |
download | libfuse-cea9b33acc13e7683e3646fca04953d14e3211b7.tar.gz |
Fix build in musl libc
Function fuse_set_thread_name() assumes that pthread_t is an unsigned long
and fails to compile in musl libc with the following:
../lib/util.c: In function 'fuse_set_thread_name':
../lib/util.c:48:28: error: passing argument 1 of 'pthread_setname_np' makes \
pointer from integer without a cast [-Wint-conversion]
Fix fuse_set_thread_name() by dropping the 'tid' parameter, as it is always
set to pthread_self().
Signed-off-by: Luis Henriques <luis@igalia.com>
Diffstat (limited to 'lib/util.h')
-rw-r--r-- | lib/util.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -12,7 +12,7 @@ struct fuse_conn_info; int libfuse_strtol(const char *str, long *res); -void fuse_set_thread_name(unsigned long tid, const char *name); +void fuse_set_thread_name(const char *name); /** * Return the low bits of a number |