From owner-freebsd-emulation@FreeBSD.ORG Sun Sep 18 18:00:30 2011 Return-Path: Delivered-To: emulation@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8E25C1065673 for ; Sun, 18 Sep 2011 18:00:30 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 7D8418FC13 for ; Sun, 18 Sep 2011 18:00:30 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p8II0UOc077808 for ; Sun, 18 Sep 2011 18:00:30 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p8II0Uoc077807; Sun, 18 Sep 2011 18:00:30 GMT (envelope-from gnats) Date: Sun, 18 Sep 2011 18:00:30 GMT Message-Id: <201109181800.p8II0Uoc077807@freefall.freebsd.org> To: emulation@FreeBSD.org From: Rainer Hurling Cc: Subject: Re: ports/160799: [patch] emulators/rtc AND 9.0-BETA2 > = r225618 rtc.ko: Exec format error X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Rainer Hurling List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Sep 2011 18:00:30 -0000 The following reply was made to PR ports/160799; it has been noted by GNATS. From: Rainer Hurling 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--