mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
Fix building for OSVERSION >= 900044.
PR: ports/160799 Submitted by: Ivan Klymenko <fidaj@ukr.net> Patch by: Rainer Hurling <rhurlin@gwdg.de>
This commit is contained in:
parent
6683493cf9
commit
eed6e97e18
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=281960
1 changed files with 8 additions and 0 deletions
|
@ -71,10 +71,18 @@ linux_ioctl_rtc(struct proc *p, struct linux_ioctl_args *args)
|
||||||
switch (args->cmd & 0xffff) {
|
switch (args->cmd & 0xffff) {
|
||||||
case LINUX_RTC_PIE_ON:
|
case LINUX_RTC_PIE_ON:
|
||||||
args->cmd=RTCIO_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);
|
return ioctl(p, (struct ioctl_args*)args);
|
||||||
|
#endif
|
||||||
case LINUX_RTC_IRQP_SET:
|
case LINUX_RTC_IRQP_SET:
|
||||||
args->cmd=RTCIO_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);
|
return ioctl(p, (struct ioctl_args*)args);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
return (ENOIOCTL);
|
return (ENOIOCTL);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue