[PATCH] posix: fix building regex when _LIBC isn't defined
Cœur
coeur@gmx.fr
Tue Jun 3 08:27:35 GMT 2025
---
posix/regcomp.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/posix/regcomp.c b/posix/regcomp.c
index 69675d81f7..32043e9d37 100644
--- a/posix/regcomp.c
+++ b/posix/regcomp.c
@@ -3301,8 +3301,11 @@ parse_bracket_exp (re_string_t *regexp, re_dfa_t *dfa, re_token_t *token,
#ifdef RE_ENABLE_I18N
mbcset, &coll_sym_alloc,
#endif /* RE_ENABLE_I18N */
- start_elem.opr.name,
- nrules, table_size, symb_table, extra);
+ start_elem.opr.name
+#ifdef _LIBC
+ , nrules, table_size, symb_table, extra
+#endif
+ );
if (__glibc_unlikely (*err != REG_NOERROR))
goto parse_bracket_exp_free_return;
break;
--
2.46.0
More information about the Libc-alpha
mailing list