]> git.sesse.net Git - vlc/commitdiff
extras/tools: fix ragel build with clang on OSX Mavericks
authorKonstantin Pavlov <thresh@videolan.org>
Sat, 31 Aug 2013 14:52:48 +0000 (18:52 +0400)
committerKonstantin Pavlov <thresh@videolan.org>
Sun, 1 Sep 2013 11:47:51 +0000 (15:47 +0400)
extras/tools/ragel-6.8-javacodegen.patch [new file with mode: 0644]
extras/tools/tools.mak

diff --git a/extras/tools/ragel-6.8-javacodegen.patch b/extras/tools/ragel-6.8-javacodegen.patch
new file mode 100644 (file)
index 0000000..ff558b9
--- /dev/null
@@ -0,0 +1,11 @@
+diff -urN ragel-6.8.orig/ragel/javacodegen.cpp ragel-6.8/ragel/javacodegen.cpp
+--- ragel-6.8.orig/ragel/javacodegen.cpp       2013-02-11 05:57:45.000000000 +0400
++++ ragel-6.8/ragel/javacodegen.cpp    2013-09-01 14:42:27.000000000 +0400
+@@ -50,6 +50,7 @@
+ using std::ifstream;
+ using std::ostream;
+ using std::ios;
++using std::setiosflags;
+ using std::cin;
+ using std::cout;
+ using std::cerr;
index f7efcfaa0669ebf07604d19f3d4cf6ef479bde75..a009a60b03ac220a5614622f15eeece41d60b98b 100644 (file)
@@ -240,6 +240,7 @@ ragel: ragel-$(RAGEL_VERSION).tar.gz
        $(MOVE)
 
 .ragel: ragel
+       $(APPLY) ragel-6.8-javacodegen.patch
        (cd ragel; ./configure --prefix=$(PREFIX) --disable-shared --enable-static && make && make install)
        touch $@