[libdvdcss-devel] [PATCH 24/25] Add missing #includes to make all headers compile standalone.

Diego Biurrun diego at biurrun.de
Mon Oct 20 11:59:17 CEST 2014


---
 src/css.h       | 1 +
 src/csstables.h | 2 ++
 src/ioctl.h     | 2 ++
 src/libdvdcss.h | 6 ++++++
 4 files changed, 11 insertions(+)

diff --git a/src/css.h b/src/css.h
index 54b5a4f..48d7a1e 100644
--- 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
diff --git a/src/csstables.h b/src/csstables.h
index 10b0faf..7306f35 100644
--- 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,
diff --git a/src/ioctl.h b/src/ioctl.h
index a56c637..bb50214 100644
--- 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 * );
diff --git a/src/libdvdcss.h b/src/libdvdcss.h
index e89cff4..741fbd2 100644
--- 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"
-- 
1.9.1



More information about the libdvdcss-devel mailing list