[vlc-commits] skins2: fix compilation on Linux (if no libtar)

Erwan Tulou git at videolan.org
Sun Jun 14 00:45:55 CEST 2015


vlc | branch: master | Erwan Tulou <erwan10 at videolan.org> | Sun Jun 14 00:38:28 2015 +0200| [7a8a62f6f7987d01232800924b75ab4d05fc163e] | committer: Erwan Tulou

skins2: fix compilation on Linux (if no libtar)

problem reported by Timothy B. Terriberry" <tterribe at xiph.org>

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

 modules/gui/skins2/src/theme_loader.cpp |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/gui/skins2/src/theme_loader.cpp b/modules/gui/skins2/src/theme_loader.cpp
index e54f999..6766be5 100644
--- a/modules/gui/skins2/src/theme_loader.cpp
+++ b/modules/gui/skins2/src/theme_loader.cpp
@@ -64,6 +64,9 @@ int makedir( const char *newdir );
 #define WINAMP2_XML_FILE "winamp2.xml"
 #define ZIP_BUFFER_SIZE 4096
 
+#ifndef O_BINARY
+#   define O_BINARY 0
+#endif
 
 bool ThemeLoader::load( const string &fileName )
 {



More information about the vlc-commits mailing list