gnunet-fuse

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

commit c338938b3e76a23a95a9ec1a6be28ed48373268f
parent 0c8b782bd737131b0db69b25f8f6b49d7fb8a0b9
Author: ng0 <ng0@n0.is>
Date:   Tue, 19 Nov 2019 18:11:33 +0000

remove some ancient defines from gnunet. use BSD define from
sys/param.h in mutex.c.

Diffstat:
Mconfigure.ac | 16+++++++---------
Msrc/fuse/mutex.c | 4++--
2 files changed, 9 insertions(+), 11 deletions(-)

diff --git a/configure.ac b/configure.ac @@ -1,5 +1,5 @@ # This file is part of GNUnet. -# (C) 2001-2013 Christian Grothoff (and other contributing authors) +# (C) 2001-2013, 2019 Christian Grothoff (and other contributing authors) # # GNUnet is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published @@ -62,16 +62,13 @@ linux*) AC_DEFINE_UNQUOTED(LINUX,1,[This is a Linux system]) ;; freebsd*) - AC_DEFINE_UNQUOTED(SOMEBSD,1,[This is a BSD system]) - AC_DEFINE_UNQUOTED(FREEBSD,1,[This is a FreeBSD system]) + build_target="freebsd" ;; openbsd*) - AC_DEFINE_UNQUOTED(SOMEBSD,1,[This is a BSD system]) - AC_DEFINE_UNQUOTED(OPENBSD,1,[This is an OpenBSD system]) + build_target="openbsd" ;; netbsd*) - AC_DEFINE_UNQUOTED(SOMEBSD,1,[This is a BSD system]) - AC_DEFINE_UNQUOTED(NETBSD,1,[This is a NetBSD system]) + build_target="netbsd" ;; *solaris*) AC_DEFINE_UNQUOTED(SOLARIS,1,[This is a Solaris system]) @@ -109,7 +106,7 @@ AM_CONDITIONAL(MINGW, test "$build_target" = "mingw") AM_GNU_GETTEXT_VERSION([0.19.4]) AM_GNU_GETTEXT([external]) -AC_CHECK_HEADERS([errno.h stdio.h unistd.h locale.h sys/stat.h sys/types.h langinfo.h libintl.h unistd.h stddef.h argz.h sys/socket.h netinet/in.h stdarg.h]) +AC_CHECK_HEADERS([errno.h stdio.h unistd.h locale.h sys/stat.h sys/types.h langinfo.h libintl.h unistd.h stddef.h argz.h sys/socket.h netinet/in.h stdarg.h sys/param.h]) backup_LIBS="$LIBS" backup_CFLAGS="$CFLAGS " @@ -181,8 +178,9 @@ AC_DEFINE_DIR([PACKAGE_DATA], [datarootdir], [The directory for installing read- packagesrcdir=`cd $srcdir && pwd` AC_DEFINE_UNQUOTED(PACKAGE_SOURCE_DIR, "${packagesrcdir}", [source dir]) -AC_OUTPUT([ po/Makefile.in +AC_OUTPUT([ Makefile +po/Makefile.in doc/Makefile src/Makefile src/fuse/Makefile diff --git a/src/fuse/mutex.c b/src/fuse/mutex.c @@ -26,7 +26,7 @@ #include "mutex.h" #include <pthread.h> -#if SOMEBSD +#if BSD # include <pthread_np.h> #endif @@ -73,7 +73,7 @@ GNUNET_mutex_create (int isRecursive) #if LINUX GNUNET_assert (0 == pthread_mutexattr_setkind_np (&attr, PTHREAD_MUTEX_RECURSIVE_NP)); -#elif SOMEBSD || GNUNET_freeBSD || GNUNET_freeBSD5 +#elif BSD GNUNET_assert (0 == pthread_mutexattr_setkind_np (&attr, PTHREAD_MUTEX_RECURSIVE)); #elif SOLARIS || OSX || WINDOWS