gnunet-fuse

GNUnet file-sharing directory mounting via FUSE
Log | Files | Refs | Submodules | README | LICENSE

commit fc4e1f5aa9c00d5ab3ba14affdfee17d95cb7a4a
parent 73d5253bbca0ab7bebffd444e21bc41198d9f8c6
Author: ng0 <ng0@n0.is>
Date:   Wed, 20 Nov 2019 15:02:36 +0000

it seems to be better to use ifdef instead of if for __linux__

Diffstat:
Msrc/fuse/mutex.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/fuse/mutex.c b/src/fuse/mutex.c @@ -67,7 +67,7 @@ GNUNET_mutex_create (int isRecursive) pthread_mutexattr_init (&attr); if (isRecursive) { -#if __linux__ +#ifdef __linux__ GNUNET_assert (0 == pthread_mutexattr_setkind_np (&attr, PTHREAD_MUTEX_RECURSIVE_NP)); #elif BSD || SOLARIS || OSX || WINDOWS @@ -77,7 +77,7 @@ GNUNET_mutex_create (int isRecursive) } else { -#if __linux__ +#ifdef __linux__ GNUNET_assert (0 == pthread_mutexattr_setkind_np (&attr, PTHREAD_MUTEX_ERRORCHECK_NP)); #else