From 605524c0e53a8193eeb4309f6a8418e344906205 Mon Sep 17 00:00:00 2001 From: Bernhard Froehlich Date: Wed, 15 Jan 2014 09:21:32 +0000 Subject: [PATCH] build: ioctl() is defined in platform specific include files and features.h is Linux specific --- src/descrambler/capmt.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/descrambler/capmt.c b/src/descrambler/capmt.c index 1b912e7199..258bc2bdb7 100644 --- a/src/descrambler/capmt.c +++ b/src/descrambler/capmt.c @@ -33,7 +33,6 @@ #include #include #include -#include #include #include @@ -47,6 +46,12 @@ #include "tvhcsa.h" #include "input/mpegts/linuxdvb/linuxdvb_private.h" +#if defined(PLATFORM_LINUX) +#include +#elif defined(PLATFORM_FREEBSD) +#include +#endif + // ca_pmt_list_management values: #define CAPMT_LIST_MORE 0x00 // append a 'MORE' CAPMT object the list and start receiving the next object #define CAPMT_LIST_FIRST 0x01 // clear the list when a 'FIRST' CAPMT object is received, and start receiving the next object @@ -69,7 +74,7 @@ #define CW_DUMP(buf, len, format, ...) \ printf(format, __VA_ARGS__); int j; for (j = 0; j < len; ++j) printf("%02X ", buf[j]); printf("\n"); -#ifdef __GNUC__ +#if defined(__GNUC__) && defined(PLATFORM_LINUX) #include #if __GNUC_PREREQ(4, 3) #pragma GCC diagnostic ignored "-Warray-bounds"