diff options
author | Emmanuel Dreyfus <manu@netbsd.org> | 2020-06-30 16:42:36 +0200 |
---|---|---|
committer | gluster-ant <bugzilla-bot@gluster.org> | 2020-06-30 16:42:36 +0200 |
commit | b6a657e8eb764cc0c0b0cec9d9c87234fc8b1fc4 (patch) | |
tree | 995855cc0e7713af8435be473e596df700e08d9b /rpc | |
parent | 9c3c834f7b83334330f09357be16c379017e2db3 (diff) | |
download | glusterfs-b6a657e8eb764cc0c0b0cec9d9c87234fc8b1fc4.tar.gz glusterfs-b6a657e8eb764cc0c0b0cec9d9c87234fc8b1fc4.tar.xz glusterfs-b6a657e8eb764cc0c0b0cec9d9c87234fc8b1fc4.zip |
NetBSD build fixes
- Make sure -largp is used at link time
- PTHREAD_MUTEX_ADAPTIVE_NP is not available, use PTHREAD_MUTEX_DEFAULT instead
- Avoid non POSIX [[ ]] in scripts
- Do not check of lock.spinlock is NULL since it is not a pointer
(it is not a pointer on Linux either)
Change-Id: I5e04a7c552d24f8a473c2b837828d1bddfa7e128
Fixes: #1347
Type: Bug
Signed-off-by: Emmanuel Dreyfus <manu@netbsd.org>
Diffstat (limited to 'rpc')
-rw-r--r-- | rpc/rpc-lib/src/rpcsvc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rpc/rpc-lib/src/rpcsvc.c b/rpc/rpc-lib/src/rpcsvc.c index eace6eaee3..4297af4609 100644 --- a/rpc/rpc-lib/src/rpcsvc.c +++ b/rpc/rpc-lib/src/rpcsvc.c @@ -41,6 +41,10 @@ #include "xdr-rpcclnt.h" #include <glusterfs/glusterfs-acl.h> +#ifndef PTHREAD_MUTEX_ADAPTIVE_NP +#define PTHREAD_MUTEX_ADAPTIVE_NP PTHREAD_MUTEX_DEFAULT +#endif + static struct rpcsvc_program gluster_dump_prog; #define rpcsvc_alloc_request(svc, request) \ |