]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
posix: fix building regex when _LIBC isn't defined
authorCœur <coeur@gmx.fr>
Tue, 3 Jun 2025 08:27:35 +0000 (10:27 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Wed, 4 Jun 2025 11:55:23 +0000 (13:55 +0200)
Reviewed-by: Florian Weimer <fweimer@redhat.com>
posix/regcomp.c

index 69675d81f7264736f253185b71644adefdabfc5c..32043e9d37e38f39dc2991228613582089d267bb 100644 (file)
@@ -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;