gnunet-fuse: Fix compile with glibc
authorHauke Mehrtens <hauke@hauke-m.de>
Mon, 15 Aug 2022 11:41:31 +0000 (13:41 +0200)
committerRosen Penev <rosenp@gmail.com>
Thu, 25 Aug 2022 07:37:54 +0000 (00:37 -0700)
commit1d795f2c1ed0e3f42962f3547d63a86bf0d06e58
tree6990a6f75ffa2cf465fe167d24bd20c45a4d27fd
parentf3a3184d3283334fd60498aba6b6bbcc246e3d55
gnunet-fuse: Fix compile with glibc

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 <hauke@hauke-m.de>
net/gnunet-fuse/patches/001-musl-compat.patch [deleted file]
net/gnunet-fuse/patches/001-pthread_mutexattr_settype.patch [new file with mode: 0644]