commit 73d5253bbca0ab7bebffd444e21bc41198d9f8c6
parent 16fc5fda157b0679e928d5e9e43928f5f2b863d4
Author: ng0 <ng0@n0.is>
Date: Wed, 20 Nov 2019 12:54:30 +0000
use the portable __linux__ instead of defining LINUX ourselves.
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/configure.ac b/configure.ac
@@ -78,7 +78,7 @@ netbsd*)
build_target="solaris"
;;
*arm-linux*)
- AC_DEFINE_UNQUOTED(LINUX,1,[This is a Linux system])
+ build_target="linux"
;;
*cygwin*)
AC_DEFINE_UNQUOTED(CYGWIN,1,[This is a Cygwin system])
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
+#if __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
+#if __linux__
GNUNET_assert (0 == pthread_mutexattr_setkind_np
(&attr, PTHREAD_MUTEX_ERRORCHECK_NP));
#else