Skip to content

Commit

Permalink
handle uname returning evbarm on NetBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-frbg authored Dec 4, 2024
1 parent 1a6ecda commit a791912
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions c_check
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ hostarch=`uname -m | sed -e 's/i.86/x86/'`
if [ "$hostos" = "AIX" ] || [ "$hostos" = "SunOS" ]; then
hostarch=`uname -p`
fi
if [ "$hostarch" = "evbarm" ]; then
hostarch=`uname -p`
fi
case "$hostarch" in
amd64) hostarch=x86_64 ;;
arm*) [ "$hostarch" = "arm64" ] || hostarch='arm' ;;
Expand Down

0 comments on commit a791912

Please sign in to comment.