From ddc4f0144a709cebc4dae321b810e85547856b09 Mon Sep 17 00:00:00 2001 From: Sergey Bugaev Date: Sat, 23 Mar 2024 14:53:16 +0300 Subject: proc: Only try host_kernel_version () on i386 None of the new architectures are going to have it; that isn't specific to x86_64. Message-ID: <20240323115322.69075-4-bugaevc@gmail.com> --- proc/host.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'proc') diff --git a/proc/host.c b/proc/host.c index 823bda53..0197fecf 100644 --- a/proc/host.c +++ b/proc/host.c @@ -371,8 +371,8 @@ initialize_version_info (void) server_versions_nalloc = 10; err = host_get_kernel_version (mach_host_self (), kv); -#ifndef __x86_64__ - /* We don't support host_kernel_version for x86_64. */ +#ifdef __i386__ + /* We only supported host_kernel_version on i386. */ if (err == MIG_BAD_ID) { /* Delete after some time. */ -- cgit v1.2.3