bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 04/10] proc: Only try host_kernel_version () on i386


From: Sergey Bugaev
Subject: [PATCH 04/10] proc: Only try host_kernel_version () on i386
Date: Sat, 23 Mar 2024 14:53:16 +0300

None of the new architectures are going to have it; that isn't specific
to x86_64.
---
 proc/host.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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. */
-- 
2.44.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]