aboutsummaryrefslogtreecommitdiff
path: root/kern/host.c
diff options
context:
space:
mode:
Diffstat (limited to 'kern/host.c')
-rw-r--r--kern/host.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/kern/host.c b/kern/host.c
index 50f58e9c..2db09154 100644
--- a/kern/host.c
+++ b/kern/host.c
@@ -205,7 +205,7 @@ kern_return_t host_info(
* wanted to know about what version of the kernel this is).
*/
-kern_return_t host_kernel_version(
+kern_return_t host_get_kernel_version(
const host_t host,
kernel_version_t out_version)
{
@@ -219,13 +219,15 @@ kern_return_t host_kernel_version(
return KERN_SUCCESS;
}
-/* Same as above */
-kern_return_t host_get_kernel_version(
+#ifndef __x86_64__
+/* Same as above, but does not exist for x86_64. */
+kern_return_t host_kernel_version(
const host_t host,
kernel_version_t out_version)
{
- return host_kernel_version(host, out_version);
+ return host_get_kernel_version(host, out_version);
}
+#endif
/*
* host_processor_sets: