aboutsummaryrefslogtreecommitdiff
path: root/emulators/rtc
diff options
context:
space:
mode:
authorBoris Samorodov <bsam@FreeBSD.org>2011-09-18 20:31:05 +0000
committerBoris Samorodov <bsam@FreeBSD.org>2011-09-18 20:31:05 +0000
commiteed6e97e18cbb2d60b91210e8e1597a24377e4c8 (patch)
tree609d4936348ec348635eb052786ab64d3d90a8dd /emulators/rtc
parent6683493cf9ca70ec1c2eb7ac491d9a6420c5677e (diff)
downloadports-eed6e97e18cbb2d60b91210e8e1597a24377e4c8.tar.gz
ports-eed6e97e18cbb2d60b91210e8e1597a24377e4c8.zip
Notes
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);
}