- solaris: translate i86pc to i386 (#57182).

CVS patchset: 5218
CVS date: 2001/12/09 20:17:38
This commit is contained in:
jbj 2001-12-09 20:17:38 +00:00
parent 85f676ed66
commit 53ce5564b5
1 changed files with 6 additions and 0 deletions

View File

@ -964,6 +964,12 @@ static void defaultMachine(/*@out@*/ const char ** arch,
else /* Solaris 2.x: n.x.x becomes n-3.x.x */
sprintf(un.sysname, "solaris%1d%s", atoi(un.release)-3,
un.release+1+(atoi(un.release)/10));
/* Solaris on Intel hardware reports i86pc instead of i386
* (at least on 2.6 and 2.8)
*/
if (!strcmp(un.machine, "i86pc"))
sprintf(un.machine, "i386");
}
else if (!strcmp(un.sysname, "HP-UX"))
/*make un.sysname look like hpux9.05 for example*/