packages
packages copied to clipboard
gnunet-fuse: Fix compile with glibc
Maintainer: @danwrt Compile tested: aarch64 / glibc Run tested: None
Always use pthread_mutexattr_settype() the pthread_mutexattr_setkind_np() function is not available in the glibc and musl version used by OpenWrt.
This fixes the following compile error:
arc-openwrt-linux-gnu/bin/ld: gnunet_fuse-mutex.o: in function `GNUNET_mutex_create':
mutex.c:(.text+0x14): undefined reference to `pthread_mutexattr_setkind_np'
arc-openwrt-linux-gnu/bin/ld: mutex.c:(.text+0x14): undefined reference to `pthread_mutexattr_setkind_np'
arc-openwrt-linux-gnu/bin/ld: mutex.c:(.text+0x76): undefined reference to `pthread_mutexattr_setkind_np'
arc-openwrt-linux-gnu/bin/ld: mutex.c:(.text+0x76): undefined reference to `pthread_mutexattr_setkind_np'
collect2: error: ld returned 1 exit status
This patch was taken from: https://aur.archlinux.org/cgit/aur.git/plain/pthread_mutexattr_settype.patch?h=gnunet-fuse
Signed-off-by: Hauke Mehrtens [email protected]
This is already included upstream: https://git.gnunet.org/gnunet-fuse.git/commit/?id=5e3ae1e8d8b6bf440b36ea2a6f553d4d365a8110