[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet-fuse] branch master updated: use the portable __linux__ instead
From: |
gnunet |
Subject: |
[gnunet-fuse] branch master updated: use the portable __linux__ instead of defining LINUX ourselves. |
Date: |
Wed, 20 Nov 2019 13:57:43 +0100 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository gnunet-fuse.
The following commit(s) were added to refs/heads/master by this push:
new 73d5253 use the portable __linux__ instead of defining LINUX
ourselves.
73d5253 is described below
commit 73d5253bbca0ab7bebffd444e21bc41198d9f8c6
Author: ng0 <address@hidden>
AuthorDate: Wed Nov 20 12:54:30 2019 +0000
use the portable __linux__ instead of defining LINUX ourselves.
---
configure.ac | 2 +-
src/fuse/mutex.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/configure.ac b/configure.ac
index ea16b3f..9f61dcf 100644
--- 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
index 6dcdce3..97b62a8 100644
--- 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
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnunet-fuse] branch master updated: use the portable __linux__ instead of defining LINUX ourselves.,
gnunet <=