From cf8acf219726f5c1ebf3c6a37c3122637f0ae12e Mon Sep 17 00:00:00 2001 From: Thomas Klausner Date: Sun, 18 May 2014 22:58:43 +0300 Subject: 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. --- configure.ac | 4 ++++ src/input/input_dvb.c | 4 ++++ 2 files changed, 8 insertions(+) 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 +#ifdef HAVE_DEV_DTV_DTVIO_H +#include +#else #include #include +#endif #define LOG_MODULE "input_dvb" #define LOG_VERBOSE -- cgit v1.2.3