Commit 31ae004c authored by Rafaël Carré's avatar Rafaël Carré Committed by Jean-Baptiste Kempf

contrib: gettext: fix misassumption about alloca

(cherry picked from commit 9e775fc6d67236e4dfef2f5928d2b5099e1f9466)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 4fd211c2
--- 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
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment