change CPU detection for non-w32

This commit is contained in:
Stas Degteff 2005-10-27 16:28:14 +00:00
parent 139032d223
commit d33dc84ae5

View File

@ -539,11 +539,11 @@ char* ggetosstring(void) {
struct utsname info; struct utsname info;
gcpuid(processor);
if(uname(&info) != -1) { if(uname(&info) != -1) {
if(strcmp(info.machine,"i386")) if(!processor[0])
strcpy(processor,info.machine); strcpy(processor,info.machine);
else
gcpuid(processor);
#if defined(__EMX__) #if defined(__EMX__)
sprintf(osstring, "%s %s.%s %s", info.sysname, info.version, info.release, processor); sprintf(osstring, "%s %s.%s %s", info.sysname, info.version, info.release, processor);