mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
gnunet-fuse: add package
GNUnet component to mount GNUnet filesystems via FUSE Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
--- a/src/fuse/mutex.c
|
||||
+++ b/src/fuse/mutex.c
|
||||
@@ -71,8 +71,13 @@ GNUNET_mutex_create (int isRecursive)
|
||||
if (isRecursive)
|
||||
{
|
||||
#if LINUX
|
||||
+#if defined(__UCLIBC__) || defined(__GLIBC__)
|
||||
GNUNET_assert (0 == pthread_mutexattr_setkind_np
|
||||
(&attr, PTHREAD_MUTEX_RECURSIVE_NP));
|
||||
+#else
|
||||
+ GNUNET_assert (0 == pthread_mutexattr_settype
|
||||
+ (&attr, PTHREAD_MUTEX_RECURSIVE));
|
||||
+#endif
|
||||
#elif SOMEBSD || GNUNET_freeBSD || GNUNET_freeBSD5
|
||||
GNUNET_assert (0 == pthread_mutexattr_setkind_np
|
||||
(&attr, PTHREAD_MUTEX_RECURSIVE));
|
||||
@@ -84,11 +89,16 @@ GNUNET_mutex_create (int isRecursive)
|
||||
else
|
||||
{
|
||||
#if LINUX
|
||||
+#if defined(__UCLIBC__) || defined(__GLIBC__)
|
||||
GNUNET_assert (0 == pthread_mutexattr_setkind_np
|
||||
(&attr, PTHREAD_MUTEX_ERRORCHECK_NP));
|
||||
#else
|
||||
GNUNET_assert (0 == pthread_mutexattr_settype
|
||||
(&attr, PTHREAD_MUTEX_ERRORCHECK));
|
||||
+#endif
|
||||
+#else
|
||||
+ GNUNET_assert (0 == pthread_mutexattr_settype
|
||||
+ (&attr, PTHREAD_MUTEX_ERRORCHECK));
|
||||
#endif
|
||||
}
|
||||
mut = GNUNET_new (struct GNUNET_Mutex);
|
||||
Reference in New Issue
Block a user