[vlc-commits] stream_extractor: fix compilation with older libarchive

Steve Lhomme git at videolan.org
Fri Mar 3 15:17:01 CET 2017


vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Fri Mar  3 14:19:43 2017 +0100| [d532f07382e93753674f19aea39ad984b5714761] | committer: Jean-Baptiste Kempf

stream_extractor: fix compilation with older libarchive

Since we require only 3.1.0 instead of 3.2.2 in the contribs

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d532f07382e93753674f19aea39ad984b5714761
---

 modules/stream_extractor/archive.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/modules/stream_extractor/archive.c b/modules/stream_extractor/archive.c
index efdd4e4..3b7a0cf 100644
--- a/modules/stream_extractor/archive.c
+++ b/modules/stream_extractor/archive.c
@@ -36,6 +36,11 @@
 #include <archive.h>
 #include <archive_entry.h>
 
+#if ARCHIVE_VERSION_NUMBER < 3002000
+typedef __LA_INT64_T la_int64_t;
+typedef __LA_SSIZE_T la_ssize_t;
+#endif
+
 static  int ExtractorOpen( vlc_object_t* );
 static void ExtractorClose( vlc_object_t* );
 



More information about the vlc-commits mailing list