Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 39326
b: refs/heads/master
c: 69fada3
h: refs/heads/master
v: v3
  • Loading branch information
Paolo 'Blaisorblade' Giarrusso authored and Linus Torvalds committed Oct 11, 2006
1 parent a8715d1 commit ac62376
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1b4ad242fcfcf1e261604cb91ee5fb8032900997
refs/heads/master: 69fada32d868d7f4be128ea4df8fbe4fd897fc34
9 changes: 8 additions & 1 deletion trunk/arch/um/os-Linux/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,18 @@ void setup_machinename(char *machine_out)
struct utsname host;

uname(&host);
#if defined(UML_CONFIG_UML_X86) && !defined(UML_CONFIG_64BIT)
#ifdef UML_CONFIG_UML_X86
# ifndef UML_CONFIG_64BIT
if (!strcmp(host.machine, "x86_64")) {
strcpy(machine_out, "i686");
return;
}
# else
if (!strcmp(host.machine, "i686")) {
strcpy(machine_out, "x86_64");
return;
}
# endif
#endif
strcpy(machine_out, host.machine);
}
Expand Down

0 comments on commit ac62376

Please sign in to comment.