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,12 +539,12 @@ char* ggetosstring(void) {
struct utsname info; struct utsname info;
if(uname(&info) != -1) {
if(strcmp(info.machine,"i386"))
strcpy(processor,info.machine);
else
gcpuid(processor); gcpuid(processor);
if(uname(&info) != -1) {
if(!processor[0])
strcpy(processor,info.machine);
#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);
#elif defined(__DJGPP__) #elif defined(__DJGPP__)