Skip to content

Commit a791912

Browse files
authored
handle uname returning evbarm on NetBSD
1 parent 1a6ecda commit a791912

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

c_check

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ hostarch=`uname -m | sed -e 's/i.86/x86/'`
66
if [ "$hostos" = "AIX" ] || [ "$hostos" = "SunOS" ]; then
77
hostarch=`uname -p`
88
fi
9+
if [ "$hostarch" = "evbarm" ]; then
10+
hostarch=`uname -p`
11+
fi
912
case "$hostarch" in
1013
amd64) hostarch=x86_64 ;;
1114
arm*) [ "$hostarch" = "arm64" ] || hostarch='arm' ;;

0 commit comments

Comments
 (0)