aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-11-20 12:54:30 +0000
committerng0 <ng0@n0.is>2019-11-20 12:54:30 +0000
commit73d5253bbca0ab7bebffd444e21bc41198d9f8c6 (patch)
tree357a9392d0aefbe6a3ce5ec1b147a590a2418c6c /src
parent16fc5fda157b0679e928d5e9e43928f5f2b863d4 (diff)
downloadgnunet-fuse-73d5253bbca0ab7bebffd444e21bc41198d9f8c6.tar.gz
gnunet-fuse-73d5253bbca0ab7bebffd444e21bc41198d9f8c6.zip
use the portable __linux__ instead of defining LINUX ourselves.
Diffstat (limited to 'src')
-rw-r--r--src/fuse/mutex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fuse/mutex.c b/src/fuse/mutex.c
index 6dcdce3..97b62a8 100644
--- a/src/fuse/mutex.c
+++ b/src/fuse/mutex.c
@@ -67,7 +67,7 @@ GNUNET_mutex_create (int isRecursive)
67 pthread_mutexattr_init (&attr); 67 pthread_mutexattr_init (&attr);
68 if (isRecursive) 68 if (isRecursive)
69 { 69 {
70#if LINUX 70#if __linux__
71 GNUNET_assert (0 == pthread_mutexattr_setkind_np 71 GNUNET_assert (0 == pthread_mutexattr_setkind_np
72 (&attr, PTHREAD_MUTEX_RECURSIVE_NP)); 72 (&attr, PTHREAD_MUTEX_RECURSIVE_NP));
73#elif BSD || SOLARIS || OSX || WINDOWS 73#elif BSD || SOLARIS || OSX || WINDOWS
@@ -77,7 +77,7 @@ GNUNET_mutex_create (int isRecursive)
77 } 77 }
78 else 78 else
79 { 79 {
80#if LINUX 80#if __linux__
81 GNUNET_assert (0 == pthread_mutexattr_setkind_np 81 GNUNET_assert (0 == pthread_mutexattr_setkind_np
82 (&attr, PTHREAD_MUTEX_ERRORCHECK_NP)); 82 (&attr, PTHREAD_MUTEX_ERRORCHECK_NP));
83#else 83#else