[MPlayer-dev-eng] [PATCH] -- FreeBSD RTC Support

Diego Biurrun diego at biurrun.de
Sat Dec 18 17:54:42 CET 2004


Michael Johnson writes:
> Hi, This patch enables RTC support for FreeBSD.

Hmm, there is already a "patch" in the FreeBSD ports tree that enables
RTC on FreeBSD (at the cost of dropping Linux support, though).  It
looks so much simpler, does it work for you?  I've pasted the relevant
hunk below.

Diego

http://www.freebsd.org/cgi/cvsweb.cgi/ports/multimedia/mplayer/files/patch-ad?rev=1.19&content-type=text/x-cvsweb-markup

--- configure.orig	Thu Jul 15 00:04:42 2004
+++ configure	Thu Jul 22 22:13:22 2004
@@ -4670,11 +4617,11 @@
 
 
 echocheck "RTC"
-if linux ; then
+if freebsd ; then
   if test "$_rtc" = auto ; then
     cat > $TMPC << EOF
 #include <sys/ioctl.h>
-#include <linux/rtc.h>
+#include <rtc.h>
 int main(void) { return RTC_IRQP_READ; }
 EOF
     _rtc=no




More information about the MPlayer-dev-eng mailing list