diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2025-02-09 01:59:26 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2025-02-09 01:59:28 +0100 |
commit | 41bf21a9d8e5b6b9172fabab7c8186c51d0c4524 (patch) | |
tree | 731f13190ba96cbbd93f4a2d96a1b63b30c3fbb4 | |
parent | 1d85df1edbf788968355228d0e1f51efda70af66 (diff) |
proc: support mach_cpu_subtypes only on i386
It's "supported" only there for now.
-rw-r--r-- | proc/host.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/proc/host.c b/proc/host.c index 0ce1b766..adda74d6 100644 --- a/proc/host.c +++ b/proc/host.c @@ -340,7 +340,7 @@ void initialize_version_info (void) { extern const char *const mach_cpu_types[]; -#ifndef __x86_64__ +#ifdef __i386__ extern const char *const mach_cpu_subtypes[][32]; #endif kernel_version_t kv; @@ -357,11 +357,11 @@ initialize_version_info (void) assert_backtrace (! err); snprintf (uname_info.machine, sizeof uname_info.machine, "%s" -#if !defined (__x86_64__) && !defined (__aarch64__) +#ifdef __i386__ "-%s" #endif , mach_cpu_types[info.cpu_type] -#if !defined (__x86_64__) && !defined (__aarch64__) +#ifdef __i386__ , mach_cpu_subtypes[info.cpu_type][info.cpu_subtype] #endif ); |