From e4f202c88afbf7eb3758c711e432cc15a93a9bf4 Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Wed, 28 Jan 2015 20:54:22 +0100 Subject: [PATCH] zapit: make old DVB headers fatal This catches setup errors during build instead of breaking breaking things later at run time. SPARK keeps this as a warning, as the kernel is too old. --- src/zapit/include/zapit/frontend_types.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/zapit/include/zapit/frontend_types.h b/src/zapit/include/zapit/frontend_types.h index 7c9d4551f..c43f64de1 100644 --- a/src/zapit/include/zapit/frontend_types.h +++ b/src/zapit/include/zapit/frontend_types.h @@ -21,6 +21,7 @@ #ifndef __FRONTEND_TYPES_H__ #define __FRONTEND_TYPES_H__ +#include #include #include @@ -66,7 +67,11 @@ #if ((DVB_API_VERSION > 5) || (DVB_API_VERSION == 5 && DVB_API_VERSION_MINOR > 6)) #define _HAVE_DVB57 1 #else +#if HAVE_SPARK_HARDWARE #warning DVB_API < 5.7 -- no DVB-T2/DTMB support. +#else +#error DVB_API < 5.7 => fix your toolchain +#endif /* this is actually needed before 5.5, not 5.7, but this works for now */ #define SYS_DVBC_ANNEX_A SYS_DVBC_ANNEX_AC #endif