--- configure 30 Dec 2004 12:11:32 -0000 1.948 +++ configure 2 Jan 2005 23:46:53 -0000 @@ -5024,7 +5013,12 @@ if test "$_rtc" = auto ; then cat > $TMPC << EOF #include +#ifdef __FREEBSD__ +#include +#define RTC_IRQP_READ RTCIO_IRQP_SET +#else #include +#endif int main(void) { return RTC_IRQP_READ; } EOF _rtc=no @@ -6959,7 +6995,7 @@ /* define this to use nl_langinfo function */ $_def_langinfo -/* define this to use RTC (/dev/rtc) for video timers (LINUX only) */ +/* define this to use RTC (/dev/rtc) for video timers */ $_def_rtc /* set up max. outburst. use 65536 for ALSA 0.5, for others 16384 is enough */ --- mplayer.c 2 Jan 2005 14:10:13 -0000 1.826 +++ mplayer.c 2 Jan 2005 23:46:54 -0000 @@ -92,8 +92,14 @@ #define ROUND(x) ((int)((x)<0 ? (x)-0.5 : (x)+0.5)) #ifdef HAVE_RTC +#ifdef __FreeBSD__ +#include +#define RTC_IRQP_SET RTCIO_IRQP_SET +#define RTC_PIE_ON RTCIO_PIE_ON +#else #include #endif +#endif #ifdef USE_TV #include "libmpdemux/tv.h"