From e7e0a5aaa71dd39a1def246a269bb1beb06e2f92 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 6 Nov 2023 22:59:56 +0100 Subject: 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. --- proc/host.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'proc') 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. */ -- cgit v1.2.3