change CPU detection for non-w32
This commit is contained in:
parent
139032d223
commit
d33dc84ae5
@ -539,12 +539,12 @@ char* ggetosstring(void) {
|
||||
|
||||
struct utsname info;
|
||||
|
||||
if(uname(&info) != -1) {
|
||||
if(strcmp(info.machine,"i386"))
|
||||
strcpy(processor,info.machine);
|
||||
else
|
||||
gcpuid(processor);
|
||||
|
||||
if(uname(&info) != -1) {
|
||||
if(!processor[0])
|
||||
strcpy(processor,info.machine);
|
||||
|
||||
#if defined(__EMX__)
|
||||
sprintf(osstring, "%s %s.%s %s", info.sysname, info.version, info.release, processor);
|
||||
#elif defined(__DJGPP__)
|
||||
|
Reference in New Issue
Block a user