File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,9 @@ hostarch=`uname -m | sed -e 's/i.86/x86/'`
66if [ " $hostos " = " AIX" ] || [ " $hostos " = " SunOS" ]; then
77 hostarch=` uname -p`
88fi
9+ if [ " $hostarch " = " evbarm" ]; then
10+ hostarch=` uname -p`
11+ fi
912case " $hostarch " in
1013 amd64) hostarch=x86_64 ;;
1114 arm* ) [ " $hostarch " = " arm64" ] || hostarch=' arm' ;;
Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ static char *cpuname_lower[] = {
127127int get_feature (char * search )
128128{
129129
130- #ifdef __linux
130+ #if defined( __linux ) || defined( __NetBSD__ )
131131 FILE * infile ;
132132 char buffer [2048 ], * p ,* t ;
133133 p = (char * ) NULL ;
@@ -163,7 +163,7 @@ int get_feature(char *search)
163163int detect (void )
164164{
165165
166- #ifdef __linux
166+ #if defined( __linux ) || defined( __NetBSD__ )
167167
168168 FILE * infile ;
169169 char buffer [512 ], * p , * cpu_part = NULL , * cpu_implementer = NULL ;
@@ -314,7 +314,7 @@ void get_cpucount(void)
314314{
315315int n = 0 ;
316316
317- #ifdef __linux
317+ #if defined( __linux ) || defined( __NetBSD__ )
318318 FILE * infile ;
319319 char buffer [2048 ], * p ,* t ;
320320 p = (char * ) NULL ;
@@ -608,7 +608,7 @@ void get_libname(void)
608608void get_features (void )
609609{
610610
611- #ifdef __linux
611+ #if defined( __linux ) || defined( __NetBSD__ )
612612 FILE * infile ;
613613 char buffer [2048 ], * p ,* t ;
614614 p = (char * ) NULL ;
You can’t perform that action at this time.
0 commit comments