From 9745a2624c735362fc068f0a2f33e0494343cd00 Mon Sep 17 00:00:00 2001 From: Jung-uk Kim Date: Wed, 5 Jun 2013 21:28:33 +0000 Subject: [PATCH] Fix build for FreeBSD. We do not have alloca.h. --- contrib/libgnuregex/regex_internal.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/libgnuregex/regex_internal.h b/contrib/libgnuregex/regex_internal.h index 6dfdef663943..2857e1523191 100644 --- a/contrib/libgnuregex/regex_internal.h +++ b/contrib/libgnuregex/regex_internal.h @@ -417,7 +417,9 @@ static unsigned int re_string_context_at (const re_string_t *input, int idx, #define re_string_skip_bytes(pstr,idx) ((pstr)->cur_idx += (idx)) #define re_string_set_index(pstr,idx) ((pstr)->cur_idx = (idx)) +#ifndef __FreeBSD__ #include +#endif #ifndef _LIBC # if HAVE_ALLOCA