summaryrefslogtreecommitdiffstats
path: root/contrib/libgnuregex
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2013-06-05 21:28:33 +0000
committerjkim <jkim@FreeBSD.org>2013-06-05 21:28:33 +0000
commita0a010b378f8a0c9defeb337373b34dd41754955 (patch)
tree10efe8f9f1a392f19df7c947b886fce73d9df0c2 /contrib/libgnuregex
parent9a485dc3b3ca24d8083fc77d9f48644d9d5c3a73 (diff)
downloadFreeBSD-src-a0a010b378f8a0c9defeb337373b34dd41754955.zip
FreeBSD-src-a0a010b378f8a0c9defeb337373b34dd41754955.tar.gz
Fix build for FreeBSD. We do not have alloca.h.
Diffstat (limited to 'contrib/libgnuregex')
-rw-r--r--contrib/libgnuregex/regex_internal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/libgnuregex/regex_internal.h b/contrib/libgnuregex/regex_internal.h
index 6dfdef6..2857e15 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 <alloca.h>
+#endif
#ifndef _LIBC
# if HAVE_ALLOCA
OpenPOWER on IntegriCloud