shithub: libdvdcss

Download patch

ref: f9a28c11a9a4963bb4e3c8ca9c74582b5dccd8bd
parent: 0eb4b06fff33a288cff9057cbd906b00a0b86c54
author: Diego Biurrun <diego@biurrun.de>
date: Mon Oct 20 07:59:17 EDT 2014

Add missing #includes to make all headers compile standalone.

--- a/src/css.h
+++ b/src/css.h
@@ -29,6 +29,7 @@
 #ifndef DVDCSS_CSS_H
 #define DVDCSS_CSS_H
 
+#include "common.h"
 #include "dvdcss/dvdcss.h"
 
 #define KEY_SIZE 5
--- a/src/csstables.h
+++ b/src/csstables.h
@@ -31,6 +31,8 @@
 #ifndef DVDCSS_CSSTABLES_H
 #define DVDCSS_CSSTABLES_H
 
+#include "common.h"
+
 static const uint8_t p_css_tab1[ 256 ] =
 {
     0x33, 0x73, 0x3b, 0x26, 0x63, 0x23, 0x6b, 0x76,
--- a/src/ioctl.h
+++ b/src/ioctl.h
@@ -23,6 +23,8 @@
 #ifndef DVDCSS_IOCTL_H
 #define DVDCSS_IOCTL_H
 
+#include "common.h"
+
 int ioctl_ReadCopyright     ( int, int, int * );
 int ioctl_ReadDiscKey       ( int, int *, uint8_t * );
 int ioctl_ReadTitleKey      ( int, int *, int, uint8_t * );
--- a/src/libdvdcss.h
+++ b/src/libdvdcss.h
@@ -24,6 +24,12 @@
 #ifndef DVDCSS_LIBDVDCSS_H
 #define DVDCSS_LIBDVDCSS_H
 
+#include "config.h"
+
+#ifdef HAVE_LIMITS_H
+#   include <limits.h>
+#endif
+
 #include "dvdcss/dvdcss.h"
 #include "css.h"
 #include "device.h"