aboutsummaryrefslogtreecommitdiff
path: root/kern
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@gmail.com>2024-03-27 19:18:26 +0300
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2024-03-27 19:37:59 +0100
commitf6a107020203225ec217a3752846dbf13f533413 (patch)
treec5b6c35b8ca14993099d46510e98521c1a4e6996 /kern
parent7e0b085a11cb666e955d4ecf5de8e4341629c706 (diff)
downloadgnumach-f6a107020203225ec217a3752846dbf13f533413.tar.gz
gnumach-f6a107020203225ec217a3752846dbf13f533413.tar.bz2
gnumach-f6a107020203225ec217a3752846dbf13f533413.zip
Disable host_kernel_version() everywhere but on i386
It's not only x86_64, none of new architectures are going to have it. Message-ID: <20240327161841.95685-3-bugaevc@gmail.com>
Diffstat (limited to 'kern')
-rw-r--r--kern/host.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kern/host.c b/kern/host.c
index 69394374..53f8bdbd 100644
--- a/kern/host.c
+++ b/kern/host.c
@@ -219,8 +219,8 @@ kern_return_t host_get_kernel_version(
return KERN_SUCCESS;
}
-#if !defined(__x86_64__) || defined(USER32)
-/* Same as above, but does not exist for x86_64. */
+#if defined(__i386__) || (defined(__x86_64__) && defined(USER32))
+/* Same as above, but only exists on i386. */
kern_return_t host_kernel_version(
const host_t host,
kernel_version_t out_version)