From: Cœur Date: Tue, 3 Jun 2025 08:27:35 +0000 (+0200) Subject: posix: fix building regex when _LIBC isn't defined X-Git-Tag: glibc-2.42~169 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e885fd43db8120b9f794b0a9482778da63aa136b;p=thirdparty%2Fglibc.git posix: fix building regex when _LIBC isn't defined Reviewed-by: Florian Weimer --- 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;