summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac4
-rw-r--r--src/input/input_dvb.c4
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