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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=251437

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