Skip to content

Commit

Permalink
build: ioctl() is defined in platform specific include files and feat…
Browse files Browse the repository at this point in the history
…ures.h is Linux specific
  • Loading branch information
decke committed Jan 15, 2014
1 parent 7bcaccb commit 605524c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/descrambler/capmt.c
Expand Up @@ -33,7 +33,6 @@
#include <sys/un.h>
#include <netdb.h>
#include <netinet/in.h>
#include <linux/ioctl.h>
#include <linux/dvb/ca.h>
#include <fcntl.h>

Expand All @@ -47,6 +46,12 @@
#include "tvhcsa.h"
#include "input/mpegts/linuxdvb/linuxdvb_private.h"

#if defined(PLATFORM_LINUX)
#include <linux/ioctl.h>
#elif defined(PLATFORM_FREEBSD)
#include <sys/ioccom.h>
#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
Expand All @@ -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 <features.h>
#if __GNUC_PREREQ(4, 3)
#pragma GCC diagnostic ignored "-Warray-bounds"
Expand Down

0 comments on commit 605524c

Please sign in to comment.