mirror of
https://git.freebsd.org/ports.git
synced 2025-07-03 10:29:15 -04:00
This version of libgnuregex is based on the latest version of devel/gnulib in the tree, and is intended as a direct replacement for the libgnuregex that has been historically provided in base. A port was chosen over all consumers dragging in devel/gnulib to save rebuilds since more than ~5 consumers need libgnuregex, and this also makes for an easier migration as ports just need to bring in the port and make sure LOCALBASE/lib and LOCALBASE/inclue are included. It is currently expected that ports dependant on this will fully specify the shlib version against ports tree convention so that we can provide a consistent experience across all versions of FreeBSD, past and future, using a less-broken version of the library. PR: 252245
11 lines
399 B
C
11 lines
399 B
C
--- regex_internal.h.orig 2020-12-28 19:25:52 UTC
|
|
+++ regex_internal.h
|
|
@@ -481,7 +481,7 @@ static unsigned int re_string_context_at (const re_str
|
|
#define re_string_skip_bytes(pstr,idx) ((pstr)->cur_idx += (idx))
|
|
#define re_string_set_index(pstr,idx) ((pstr)->cur_idx = (idx))
|
|
|
|
-#if defined _LIBC || HAVE_ALLOCA
|
|
+#if defined _LIBC || (HAVE_ALLOCA && HAVE_ALLOCA_H)
|
|
# include <alloca.h>
|
|
#endif
|
|
|