diff options
author | Thomas Klausner <tk@giga.or.at> | 2014-05-18 22:58:43 +0300 |
---|---|---|
committer | Thomas Klausner <tk@giga.or.at> | 2014-05-18 22:58:43 +0300 |
commit | cf8acf219726f5c1ebf3c6a37c3122637f0ae12e (patch) | |
tree | b1619ada607f2d030a534f35440e4a5dbe770557 | |
parent | bd95c97791511a83b804e73ff989935731d7faac (diff) | |
download | xine-lib-cf8acf219726f5c1ebf3c6a37c3122637f0ae12e.tar.gz xine-lib-cf8acf219726f5c1ebf3c6a37c3122637f0ae12e.tar.bz2 |
DVB support for NetBSD
Sometime in 2011 NetBSD got support for parts of the V4L2 API.
Add support for finding and using the NetBSD-specific DTV headers.
-rw-r--r-- | configure.ac | 4 | ||||
-rw-r--r-- | src/input/input_dvb.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 30f03c3af..214a5c4b8 100644 --- a/configure.ac +++ b/configure.ac @@ -361,6 +361,10 @@ case "$host_os" in esac AC_CHECK_HEADERS([sys/dvdio.h sys/cdio.h sys/scsiio.h]) +dnl ---------------------------------------------- +dnl Check for NetBSD DTV headers +dnl ---------------------------------------------- +AC_CHECK_HEADERS([dev/dtv/dtvio.h]) dnl ---------------- dnl checks for types diff --git a/src/input/input_dvb.c b/src/input/input_dvb.c index 6ac520ff0..467142c0c 100644 --- a/src/input/input_dvb.c +++ b/src/input/input_dvb.c @@ -109,8 +109,12 @@ /* XDG */ #include <basedir.h> +#ifdef HAVE_DEV_DTV_DTVIO_H +#include <dev/dtv/dtvio.h> +#else #include <linux/dvb/dmx.h> #include <linux/dvb/frontend.h> +#endif #define LOG_MODULE "input_dvb" #define LOG_VERBOSE |