summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2023-11-06 22:59:56 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-11-06 22:59:56 +0100
commite7e0a5aaa71dd39a1def246a269bb1beb06e2f92 (patch)
treebdb8310504069a6d7c131066cd2ff1aa6961feff
parent322c0cd0922916ff0ccb40847da51fe2a31dff85 (diff)
x86_64: Drop -AT386 part in uname machine
We don't really have plans to have anything else than "AT386" there, and other OSes do not include it, so it brings us more harm than good to include it.
-rw-r--r--proc/host.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/proc/host.c b/proc/host.c
index e2942f8e..823bda53 100644
--- a/proc/host.c
+++ b/proc/host.c
@@ -353,9 +353,16 @@ initialize_version_info (void)
err = host_info (mach_host_self (), HOST_BASIC_INFO,
(host_info_t) &info, &n);
assert_backtrace (! err);
- snprintf (uname_info.machine, sizeof uname_info.machine, "%s-%s",
- mach_cpu_types[info.cpu_type],
- mach_cpu_subtypes[info.cpu_type][info.cpu_subtype]);
+ snprintf (uname_info.machine, sizeof uname_info.machine,
+ "%s"
+#ifndef __x86_64__
+ "-%s"
+#endif
+ , mach_cpu_types[info.cpu_type]
+#ifndef __x86_64__
+ , mach_cpu_subtypes[info.cpu_type][info.cpu_subtype]
+#endif
+ );
/* Notice Mach's and our own version and initialize server version
variables. */