summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-01-06 00:06:56 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-01-06 00:06:56 +0000
commitb3e964f2c3e983c633efbbe4db0a57914cdcc635 (patch)
tree3cbe8fa7a8d28a5b79347011679c065723821e71 /configure
parent20f6de32b0915f66c1a874c33a4a2d892bbcd14a (diff)
downloadmpv-b3e964f2c3e983c633efbbe4db0a57914cdcc635.tar.bz2
mpv-b3e964f2c3e983c633efbbe4db0a57914cdcc635.tar.xz
RTC support on FreeBSD, inspired by a patch from Michael Johnson
<ahze at FreeBSD dot org> and Reimar Döffinger. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14382 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 8 insertions, 3 deletions
diff --git a/configure b/configure
index a6c20ad171..a4ad4fa91d 100755
--- a/configure
+++ b/configure
@@ -5024,8 +5024,13 @@ if linux ; then
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; }
+#else
+#include <rtc.h>
+#define RTC_PIE_ON RTCIO_PIE_ON
+#endif
+int main(void) { return RTC_PIE_ON; }
EOF
_rtc=no
cc_check && _rtc=yes
@@ -5033,7 +5038,7 @@ EOF
echores "$_rtc"
else
_rtc=no
- echores "no (Linux specific feature)"
+ echores "no"
fi
if test "$_rtc" = yes ; then
_def_rtc='#define HAVE_RTC 1'
@@ -6959,7 +6964,7 @@ $_def_iconv
/* 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 */