[vlc-devel] [PATCH] stream_extractor: fix compilation with older libarchive

Steve Lhomme robux4 at videolabs.io
Fri Mar 3 14:19:43 CET 2017


Since we require only 3.1.0 instead of 3.2.2 in the contribs

--
replaces https://patches.videolan.org/patch/15795/
* use the better notation
replaces https://patches.videolan.org/patch/15812/
* test a different define for each value
---
 modules/stream_extractor/archive.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/modules/stream_extractor/archive.c b/modules/stream_extractor/archive.c
index efdd4e4314..140bc64e81 100644
--- a/modules/stream_extractor/archive.c
+++ b/modules/stream_extractor/archive.c
@@ -36,6 +36,13 @@
 #include <archive.h>
 #include <archive_entry.h>
 
+#ifndef __LA_INT64_T_DEFINED
+typedef __LA_INT64_T la_int64_t;
+#endif
+#ifndef __LA_SSIZE_T_DEFINED
+typedef __LA_SSIZE_T la_ssize_t;
+#endif
+
 static  int ExtractorOpen( vlc_object_t* );
 static void ExtractorClose( vlc_object_t* );
 
-- 
2.11.1



More information about the vlc-devel mailing list