From ff4bd73fcbad60c1734891aca78d89d8ca0ea1b2 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 22 Jan 2016 11:43:46 +0100 Subject: dvb: fix compilation with older Linux headers At least DTV_ENUM_DELSYS is not available in older versions. It's hard to tell when this identifier was introduced, but it appears it was probably API version 5.5. --- stream/dvbin.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'stream') diff --git a/stream/dvbin.h b/stream/dvbin.h index e0688aa79e..9c2eb35e26 100644 --- a/stream/dvbin.h +++ b/stream/dvbin.h @@ -28,9 +28,10 @@ * Version 5 is also called S2API, it adds support for tuning to S2 channels * and is extensible for future delivery systems. Old API is deprecated. * StreamID-implementation only supported since API >=5.2. + * At least DTV_ENUM_DELSYS requires 5.5. */ -#if (DVB_API_VERSION == 5 && DVB_API_VERSION_MINOR >= 2) +#if (DVB_API_VERSION == 5 && DVB_API_VERSION_MINOR >= 5) #define DVB_USE_S2API 1 // This had a different name until API 5.8. -- cgit v1.2.3