build: ioctl() is defined in platform specific include files and features.h is Linux specific

This commit is contained in:
Bernhard Froehlich 2014-01-15 09:21:32 +00:00
parent 7bcaccb3d4
commit 605524c0e5

View file

@ -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>
@ -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
@ -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"