Date: Sun, 18 Sep 2011 18:00:30 GMT From: Rainer Hurling <rhurlin@gwdg.de> To: emulation@FreeBSD.org Subject: Re: ports/160799: [patch] emulators/rtc AND 9.0-BETA2 > = r225618 rtc.ko: Exec format error Message-ID: <201109181800.p8II0Uoc077807@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/160799; it has been noted by GNATS.
From: Rainer Hurling <rhurlin@gwdg.de>
To: bug-followup@FreeBSD.org, fidaj@ukr.net
Cc:
Subject: Re: ports/160799: [patch] emulators/rtc AND 9.0-BETA2 >= r225618
rtc.ko: Exec format error
Date: Sun, 18 Sep 2011 19:09:35 +0200
This is a multi-part message in MIME format.
--------------040000000301060404020605
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
As kmacy@ suggested on #bsdports, the version number should be repected.
--------------040000000301060404020605
Content-Type: text/plain;
name="patch-emulators__rtc.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="patch-emulators__rtc.txt"
diff -Naur rtc.orig/files/rtc_linux.c rtc/files/rtc_linux.c
--- rtc.orig/files/rtc_linux.c 2001-09-16 09:05:18.000000000 +0200
+++ rtc/files/rtc_linux.c 2011-09-18 10:07:43.000000000 +0200
@@ -71,10 +71,18 @@
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);
}
--------------040000000301060404020605--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201109181800.p8II0Uoc077807>
