From e885fd43db8120b9f794b0a9482778da63aa136b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C5=93ur?= Date: Tue, 3 Jun 2025 10:27:35 +0200 Subject: [PATCH] posix: fix building regex when _LIBC isn't defined Reviewed-by: Florian Weimer --- 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;