diff options
author | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-11-22 13:06:44 -0500 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-11-22 13:06:44 -0500 |
commit | 0bd2af46839ad6262d25714a6ec0365db9d6b98f (patch) | |
tree | dcced72d230d69fd0c5816ac6dd03ab84799a93e /arch/um/os-Linux/util.c | |
parent | e138a5d2356729b8752e88520cc1525fae9794ac (diff) | |
parent | f26b90440cd74c78fe10c9bd5160809704a9627c (diff) |
Merge ../scsi-rc-fixes-2.6
Diffstat (limited to 'arch/um/os-Linux/util.c')
-rw-r--r-- | arch/um/os-Linux/util.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/um/os-Linux/util.c b/arch/um/os-Linux/util.c index 3f5b1514e8a7..56b8a50e8bc2 100644 --- a/arch/um/os-Linux/util.c +++ b/arch/um/os-Linux/util.c | |||
@@ -80,11 +80,18 @@ void setup_machinename(char *machine_out) | |||
80 | struct utsname host; | 80 | struct utsname host; |
81 | 81 | ||
82 | uname(&host); | 82 | uname(&host); |
83 | #if defined(UML_CONFIG_UML_X86) && !defined(UML_CONFIG_64BIT) | 83 | #ifdef UML_CONFIG_UML_X86 |
84 | # ifndef UML_CONFIG_64BIT | ||
84 | if (!strcmp(host.machine, "x86_64")) { | 85 | if (!strcmp(host.machine, "x86_64")) { |
85 | strcpy(machine_out, "i686"); | 86 | strcpy(machine_out, "i686"); |
86 | return; | 87 | return; |
87 | } | 88 | } |
89 | # else | ||
90 | if (!strcmp(host.machine, "i686")) { | ||
91 | strcpy(machine_out, "x86_64"); | ||
92 | return; | ||
93 | } | ||
94 | # endif | ||
88 | #endif | 95 | #endif |
89 | strcpy(machine_out, host.machine); | 96 | strcpy(machine_out, host.machine); |
90 | } | 97 | } |