[MPlayer-dev-eng] [PATCH] -- FreeBSD RTC Support
Reimar Döffinger
Reimar.Doeffinger at stud.uni-karlsruhe.de
Tue Jan 4 11:21:48 CET 2005
Hi,
> How about the attached version? It incorporates your suggestions.
>
> Diego
>
> --- configure 30 Dec 2004 12:11:32 -0000 1.948
> +++ configure 4 Jan 2005 01:21:06 -0000
> @@ -5024,8 +5013,13 @@
> if test "$_rtc" = auto ; then
> cat > $TMPC << EOF
> #include <sys/ioctl.h>
> +#ifdef __linux__
> #include <linux/rtc.h>
> -int main(void) { return RTC_IRQP_READ; }
> +#define RTCIO_PIE_ON RTC_PIE_ON
> +#else
> +#include <rtc.h>
> +#endif
> +int main(void) { return RTCIO_PIE_ON; }
I would use RTC_PIE_ON and put the define in the else part. Or change
the code in mplayer.c... It's better to test _exactly_ what we need in
the end, not something different IMHO.
Greetings,
Reimar Döffinger
More information about the MPlayer-dev-eng
mailing list