aboutsummaryrefslogtreecommitdiff
path: root/emulators/rtc/files/rtc_linux.c
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/rtc/files/rtc_linux.c')
-rw-r--r--emulators/rtc/files/rtc_linux.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/emulators/rtc/files/rtc_linux.c b/emulators/rtc/files/rtc_linux.c
index 1aca4c9f3225..e443d53bb70a 100644
--- a/emulators/rtc/files/rtc_linux.c
+++ b/emulators/rtc/files/rtc_linux.c
@@ -71,10 +71,18 @@ linux_ioctl_rtc(struct proc *p, struct linux_ioctl_args *args)
switch (args->cmd & 0xffff) {
case LINUX_RTC_PIE_ON:
args->cmd=RTCIO_PIE_ON;
+#if __FreeBSD_version >= 900044
+ return sys_ioctl(p, (struct ioctl_args*)args);
+#else
return ioctl(p, (struct ioctl_args*)args);
+#endif
case LINUX_RTC_IRQP_SET:
args->cmd=RTCIO_IRQP_SET;
+#if __FreeBSD_version >= 900044
+ return sys_ioctl(p, (struct ioctl_args*)args);
+#else
return ioctl(p, (struct ioctl_args*)args);
+#endif
}
return (ENOIOCTL);
}