Fix build for FreeBSD. We do not have alloca.h.

This commit is contained in:
Jung-uk Kim 2013-06-05 21:28:33 +00:00
parent 1bfc81bb23
commit 9745a2624c

View File

@ -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 <alloca.h>
#endif
#ifndef _LIBC
# if HAVE_ALLOCA