diff options
author | Emmanuel Dreyfus <manu@netbsd.org> | 2020-06-30 16:42:36 +0200 |
---|---|---|
committer | Emmanuel Dreyfus <manu@netbsd.org> | 2020-06-30 16:43:25 +0200 |
commit | b29d5236ec6a41842752043bbe602a1510ac12f3 (patch) | |
tree | 995855cc0e7713af8435be473e596df700e08d9b /tools | |
parent | 384431030a7f2c4d303cabe1406a87be773ba0c4 (diff) |
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 'tools')
-rw-r--r-- | tools/gfind_missing_files/gfind_missing_files.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gfind_missing_files/gfind_missing_files.sh b/tools/gfind_missing_files/gfind_missing_files.sh index f42fe7b05af..e7aaa0b5dd4 100644 --- a/tools/gfind_missing_files/gfind_missing_files.sh +++ b/tools/gfind_missing_files/gfind_missing_files.sh @@ -61,7 +61,7 @@ mount_slave() parse_cli() { - if [[ $# -ne 4 ]]; then + if [ "$#" -ne 4 ]; then echo "Usage: gfind_missing_files <brick-path> <slave-host> <slave-vol> <OUTFILE>" exit 1 else |