2a39415477
pieces of GNU software, this package makes use of GCC extensions. Another thing is that on Solaris, <stdbool.h> may only be included by the c99 compiler, not any other; therefore we need to define our boolean type ourself.
15 lines
530 B
Text
15 lines
530 B
Text
$NetBSD: patch-regexec,v 1.1 2007/12/19 00:11:26 rillig Exp $
|
|
|
|
gcc extensions tend to confuse other compilers.
|
|
|
|
--- lib/regexec.c.orig 2005-12-06 09:46:56.000000000 +0100
|
|
+++ lib/regexec.c 2007-12-19 00:55:31.130195000 +0100
|
|
@@ -2894,7 +2894,7 @@ check_arrival (re_match_context_t *mctx,
|
|
sizeof (re_dfastate_t *) * (path->alloc - old_alloc));
|
|
}
|
|
|
|
- str_idx = path->next_idx ?: top_str;
|
|
+ str_idx = path->next_idx ? path->next_idx : top_str;
|
|
|
|
/* Temporary modify MCTX. */
|
|
backup_state_log = mctx->state_log;
|