summaryrefslogtreecommitdiff
path: root/package/m4/m4-1.4.16-001-MB_CUR_MAX.patch
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2011-11-13 19:27:54 -0300
committerPeter Korsgaard <jacmet@sunsite.dk>2011-11-14 09:29:49 +0100
commit3e70816f54c987060bb3f5deabfa7dec7713ab25 (patch)
tree040e3d897434792aa0a3034c71ab4d111650508e /package/m4/m4-1.4.16-001-MB_CUR_MAX.patch
parenta0f4ddfbe02a2eec7f6f2158d3258a511a55bf56 (diff)
m4: bump to version 1.4.16
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/m4/m4-1.4.16-001-MB_CUR_MAX.patch')
-rw-r--r--package/m4/m4-1.4.16-001-MB_CUR_MAX.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/package/m4/m4-1.4.16-001-MB_CUR_MAX.patch b/package/m4/m4-1.4.16-001-MB_CUR_MAX.patch
new file mode 100644
index 000000000..fce36731b
--- /dev/null
+++ b/package/m4/m4-1.4.16-001-MB_CUR_MAX.patch
@@ -0,0 +1,13 @@
+--- m4-1.4.8.orig/lib/regcomp.c 2006-09-24 06:28:37.000000000 +0200
++++ m4-1.4.8/lib/regcomp.c 2007-01-06 20:53:10.000000000 +0100
+@@ -871,6 +871,10 @@ init_dfa (re_dfa_t *dfa, size_t pat_len)
+ dfa->state_table = calloc (sizeof (struct re_state_table_entry), table_size);
+ dfa->state_hash_mask = table_size - 1;
+
++#ifndef MB_CUR_MAX
++#define MB_CUR_MAX (0)
++#endif
++
+ dfa->mb_cur_max = MB_CUR_MAX;
+ #ifdef _LIBC
+ if (dfa->mb_cur_max == 6