summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbugmen0t <@>2013-11-09 01:21:53 +0000
committerwm4 <wm4@nowhere>2013-12-01 19:22:17 +0100
commite773bda8932a3b96eef11c5fe5024ef79c6bbb24 (patch)
tree0f3fc89452c1f8f95bc7a8ab1a2979fceb4355af
parentd74e82cb50f2fb6fa0d3a8c250b9680697499775 (diff)
downloadmpv-e773bda8932a3b96eef11c5fe5024ef79c6bbb24.tar.bz2
mpv-e773bda8932a3b96eef11c5fe5024ef79c6bbb24.tar.xz
configure: enable v4l2 input on freebsd
-rwxr-xr-xconfigure6
1 files changed, 4 insertions, 2 deletions
diff --git a/configure b/configure
index 4ab1b20621..bd90674023 100755
--- a/configure
+++ b/configure
@@ -2935,6 +2935,8 @@ if test "$_tv_v4l2" = auto ; then
_tv_v4l2=no
if test "$_tv" = yes && linux ; then
header_check_broken sys/time.h linux/videodev2.h && _tv_v4l2=yes
+ elif test "$_tv" = yes && freebsd ; then
+ header_check linux/videodev2.h && _tv_v4l2=yes
elif test "$_tv" = yes && test "$sys_videoio_h" = "yes" ; then
_tv_v4l2=yes
fi
@@ -2989,7 +2991,7 @@ echores "$_radio_capture"
echocheck "Video 4 Linux 2 Radio interface"
if test "$_radio_v4l2" = auto ; then
_radio_v4l2=no
- if test "$_radio" = yes && linux ; then
+ if test "$_radio" = yes && (linux || freebsd) ; then
header_check linux/videodev2.h && _radio_v4l2=yes
fi
fi
@@ -3008,7 +3010,7 @@ fi
echocheck "Video 4 Linux 2 MPEG PVR interface"
if test "$_pvr" = auto ; then
_pvr=no
- if test "$_tv_v4l2" = yes && linux ; then
+ if test "$_tv_v4l2" = yes ; then
cat > $TMPC <<EOF
#include <sys/time.h>
#include <linux/videodev2.h>