Added cpuinfo to freebsd port
This commit is contained in:
commit
d0597d5909
3 changed files with 13 additions and 5 deletions
|
|
@ -406,7 +406,7 @@ void get_info()
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
#ifndef __FREEBSD__
|
||||
while (fgets(line, sizeof(line), cpuinfo))
|
||||
#ifdef __FREEBSD__
|
||||
if (sscanf(line, "hw.model: %[^\n]", cpu_model))
|
||||
|
|
@ -415,6 +415,7 @@ void get_info()
|
|||
#endif
|
||||
break;
|
||||
sprintf(user, "%s", getenv("USER"));
|
||||
#endif
|
||||
if (iscygwin == 0)
|
||||
fclose(os_release);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue