From: Adhemerval Zanella Date: Thu, 26 Feb 2026 12:49:19 +0000 (-0300) Subject: debug: Fix build with --enable-fortify-source=1 (BZ 33904) X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f96e9bd2fecce3f0284479a5c0dac6989736c8c8;p=thirdparty%2Fglibc.git debug: Fix build with --enable-fortify-source=1 (BZ 33904) The libio/bits/stdio2-decl.h only defined the prototypes for __vasprintf_chk and __vfprintf_chk for __USE_FORTIFY_LEVEL > 1. Also defined them for the internal header regardless. Checked with a build with --enable-fortify-source=1 and --enable-fortify-source=2 for all afftected ABIs. --- diff --git a/include/bits/stdio2-decl.h b/include/bits/stdio2-decl.h index 9758bf4b55..97c2236f24 100644 --- a/include/bits/stdio2-decl.h +++ b/include/bits/stdio2-decl.h @@ -3,6 +3,8 @@ #ifndef _ISOMAC libc_hidden_proto (__fgets_unlocked_chk) libc_hidden_ldbl_proto (vfprintf) +extern int __vasprintf_chk (char **, int, const char *, __gnuc_va_list) __THROW; libc_hidden_ldbl_proto (__vasprintf_chk) +extern int __vfprintf_chk (FILE *, int, const char *, __gnuc_va_list); libc_hidden_ldbl_proto (__vfprintf_chk) #endif