aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/rtc
diff options
context:
space:
mode:
authorbsam <bsam@FreeBSD.org>2011-09-19 04:31:05 +0800
committerbsam <bsam@FreeBSD.org>2011-09-19 04:31:05 +0800
commit060d6455f97666328de83f729634a81db5f6085c (patch)
tree1838aa445bea87f83dd3aad30d0b47c6d099966f /emulators/rtc
parent1de91b98e20f42c5613480b16ef22f4c0f043154 (diff)
downloadfreebsd-ports-gnome-060d6455f97666328de83f729634a81db5f6085c.tar.gz
freebsd-ports-gnome-060d6455f97666328de83f729634a81db5f6085c.tar.zst
freebsd-ports-gnome-060d6455f97666328de83f729634a81db5f6085c.zip
Fix building for OSVERSION >= 900044.
PR: ports/160799 Submitted by: Ivan Klymenko <fidaj@ukr.net> Patch by: Rainer Hurling <rhurlin@gwdg.de>
Diffstat (limited to 'emulators/rtc')
-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);
}