From d33dc84ae5ae332213769237b03720186d03fdab Mon Sep 17 00:00:00 2001 From: Stas Degteff Date: Thu, 27 Oct 2005 16:28:14 +0000 Subject: [PATCH] change CPU detection for non-w32 --- goldlib/gall/gutlvers.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/goldlib/gall/gutlvers.cpp b/goldlib/gall/gutlvers.cpp index 117080c..9f11e4b 100644 --- a/goldlib/gall/gutlvers.cpp +++ b/goldlib/gall/gutlvers.cpp @@ -539,11 +539,11 @@ char* ggetosstring(void) { struct utsname info; + gcpuid(processor); + if(uname(&info) != -1) { - if(strcmp(info.machine,"i386")) + if(!processor[0]) strcpy(processor,info.machine); - else - gcpuid(processor); #if defined(__EMX__) sprintf(osstring, "%s %s.%s %s", info.sysname, info.version, info.release, processor);