diff options
author | ng0 <ng0@n0.is> | 2019-11-20 15:02:36 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-11-20 15:02:36 +0000 |
commit | fc4e1f5aa9c00d5ab3ba14affdfee17d95cb7a4a (patch) | |
tree | d32cf9479bb70db7666f1cf8b24051a26f893508 | |
parent | 73d5253bbca0ab7bebffd444e21bc41198d9f8c6 (diff) | |
download | gnunet-fuse-fc4e1f5aa9c00d5ab3ba14affdfee17d95cb7a4a.tar.gz gnunet-fuse-fc4e1f5aa9c00d5ab3ba14affdfee17d95cb7a4a.zip |
it seems to be better to use ifdef instead of if for __linux__
-rw-r--r-- | src/fuse/mutex.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fuse/mutex.c b/src/fuse/mutex.c index 97b62a8..beb6f93 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 | #ifdef __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 | #ifdef __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 |