summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-04-02 20:51:39 +0200
committerwm4 <wm4@nowhere>2016-04-02 20:51:39 +0200
commit67888a41e72dac35c4736c8a4f946c7f06148427 (patch)
tree65c066f789e4662587ddcefdc315b2094983f541
parentaec928d75378a944be12e081dc634e59d6c2e2cd (diff)
downloadmpv-67888a41e72dac35c4736c8a4f946c7f06148427.tar.bz2
mpv-67888a41e72dac35c4736c8a4f946c7f06148427.tar.xz
build: make DVB test stricter
I got a report that the build on a recent aarch64 Linux kernel failed. DVB support was detected, but errored on compilation: In file included from ../stream/stream_dvb.c:57:0: ../stream/dvbin.h:72:5: error: unknown type name 'fe_bandwidth_t' fe_bandwidth_t bw; Make the test stricter, which should take care of this. (I couldn't find out what exactly triggered the failure, nor could I attempt to reproduce it.) The change in stream/dvbin.h is to make sure that this isn't caused by incorrect header inclusion. It now includes the same files as the configure test.
-rw-r--r--stream/dvbin.h2
-rw-r--r--waftools/fragments/dvb.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/stream/dvbin.h b/stream/dvbin.h
index 9c2eb35e26..e461364c48 100644
--- a/stream/dvbin.h
+++ b/stream/dvbin.h
@@ -18,6 +18,8 @@
#include <inttypes.h>
#include <linux/dvb/dmx.h>
#include <linux/dvb/frontend.h>
+#include <linux/dvb/video.h>
+#include <linux/dvb/audio.h>
#include <linux/dvb/version.h>
#undef DVB_ATSC
diff --git a/waftools/fragments/dvb.c b/waftools/fragments/dvb.c
index 9deaa1eaab..4ec9e37311 100644
--- a/waftools/fragments/dvb.c
+++ b/waftools/fragments/dvb.c
@@ -7,4 +7,6 @@
#include <linux/dvb/frontend.h>
#include <linux/dvb/video.h>
#include <linux/dvb/audio.h>
+#include <linux/dvb/version.h>
+fe_bandwidth_t t;
int main(void) {return 0;}