Skip to content

Commit

Permalink
utilize /proc/cpuinfo on NetBSD too
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-frbg authored Dec 4, 2024
1 parent 9c5d201 commit 1a6ecda
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cpuid_arm64.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ static char *cpuname_lower[] = {
int get_feature(char *search)
{

#ifdef __linux
#if defined( __linux ) || defined( __NetBSD__ )
FILE *infile;
char buffer[2048], *p,*t;
p = (char *) NULL ;
Expand Down Expand Up @@ -163,7 +163,7 @@ int get_feature(char *search)
int detect(void)
{

#ifdef __linux
#if defined( __linux ) || defined( __NetBSD__ )

FILE *infile;
char buffer[512], *p, *cpu_part = NULL, *cpu_implementer = NULL;
Expand Down Expand Up @@ -314,7 +314,7 @@ void get_cpucount(void)
{
int n=0;

#ifdef __linux
#if defined( __linux ) || defined( __NetBSD__ )
FILE *infile;
char buffer[2048], *p,*t;
p = (char *) NULL ;
Expand Down Expand Up @@ -608,7 +608,7 @@ void get_libname(void)
void get_features(void)
{

#ifdef __linux
#if defined( __linux ) || defined( __NetBSD__ )
FILE *infile;
char buffer[2048], *p,*t;
p = (char *) NULL ;
Expand Down

0 comments on commit 1a6ecda

Please sign in to comment.