[vlc-commits] contrib: gettext: fix misassumption about alloca

Rafaël Carré git at videolan.org
Fri Jan 27 18:16:05 CET 2012


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Fri Jan 27 10:59:11 2012 -0500| [9e775fc6d67236e4dfef2f5928d2b5099e1f9466] | committer: Rafaël Carré

contrib: gettext: fix misassumption about alloca

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

 contrib/src/gettext/alloca.patch |   13 +++++++++++++
 contrib/src/gettext/rules.mak    |    1 +
 2 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/contrib/src/gettext/alloca.patch b/contrib/src/gettext/alloca.patch
new file mode 100644
index 0000000..bbb0f22
--- /dev/null
+++ b/contrib/src/gettext/alloca.patch
@@ -0,0 +1,13 @@
+    
+--- gettext/gettext-tools/libgrep/regex_internal.h.orig	2012-01-27 16:56:14.000000000 +0100
++++ gettext/gettext-tools/libgrep/regex_internal.h	2012-01-27 16:53:34.000000000 +0100
+@@ -455,7 +455,9 @@
+ #define re_string_skip_bytes(pstr,idx) ((pstr)->cur_idx += (idx))
+ #define re_string_set_index(pstr,idx) ((pstr)->cur_idx = (idx))
+ 
++#ifdef HAVE_ALLOCA_H
+ #include <alloca.h>
++#endif
+ 
+ #ifndef _LIBC
+ # if HAVE_ALLOCA
diff --git a/contrib/src/gettext/rules.mak b/contrib/src/gettext/rules.mak
index 032934b..4f1c1eb 100644
--- a/contrib/src/gettext/rules.mak
+++ b/contrib/src/gettext/rules.mak
@@ -15,6 +15,7 @@ $(TARBALLS)/gettext-$(GETTEXT_VERSION).tar.gz:
 
 gettext: gettext-$(GETTEXT_VERSION).tar.gz .sum-gettext
 	$(UNPACK)
+	$(APPLY) $(SRC)/gettext/alloca.patch
 ifdef HAVE_MACOSX
 	$(APPLY) $(SRC)/gettext/gettext-macosx.patch
 endif



More information about the vlc-commits mailing list