From 5d29fe3f8f7ddb0feb7b961c69fb3b1ed9fdc3f0 Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Sun, 21 Jan 2024 16:07:55 -0500 Subject: x86_64: do not define mach_cpu_subtypes since we don't use it Message-ID: <20240121210757.1900938-4-flaviocruz@gmail.com> --- proc/cpu-types.c | 2 ++ proc/host.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/proc/cpu-types.c b/proc/cpu-types.c index 41af0888..ffd54282 100644 --- a/proc/cpu-types.c +++ b/proc/cpu-types.c @@ -41,6 +41,7 @@ const char *const mach_cpu_types[] = #endif }; +#ifndef __x86_64__ const char *const mach_cpu_subtypes[][32] = { [CPU_TYPE_VAX] = @@ -170,3 +171,4 @@ const char *const mach_cpu_subtypes[][32] = [CPU_SUBTYPE_ALPHA_21064] = "ALPHA_21064", }, }; +#endif /* !__x86_64__ */ diff --git a/proc/host.c b/proc/host.c index e0aff20a..0ce1b766 100644 --- a/proc/host.c +++ b/proc/host.c @@ -340,7 +340,9 @@ void initialize_version_info (void) { extern const char *const mach_cpu_types[]; +#ifndef __x86_64__ extern const char *const mach_cpu_subtypes[][32]; +#endif kernel_version_t kv; char *p; struct host_basic_info info; -- cgit v1.2.3