The following reply was made to PR ports/160799; it has been noted by GNATS.

From: Rainer Hurling <rhur...@gwdg.de>
To: bug-follo...@freebsd.org, fi...@ukr.net
Cc:  
Subject: Re: ports/160799: [patch] emulators/rtc AND 9.0-BETA2 &gt;= 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--
_______________________________________________
freebsd-emulation@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to "freebsd-emulation-unsubscr...@freebsd.org"

Reply via email to