From: Bruno Haible Date: Wed, 21 Aug 2024 21:22:26 +0000 (+0200) Subject: stdio: Fix compilation error in C++ mode on Linux/riscv64 with musl. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=9812fe540526c2cb239aac740ef61cbd6646510f;p=gnulib.git stdio: Fix compilation error in C++ mode on Linux/riscv64 with musl. * lib/stdio.in.h (fpurge): Disable _GL_CXXALIASWARN invocation on non-glibc systems. --- diff --git a/ChangeLog b/ChangeLog index 947c7eece5..2798f97b37 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2024-08-21 Bruno Haible + + stdio: Fix compilation error in C++ mode on Linux/riscv64 with musl. + * lib/stdio.in.h (fpurge): Disable _GL_CXXALIASWARN invocation on + non-glibc systems. + 2024-08-17 Bruno Haible lock: Fix pthread-rwlock crashes with clang (regr. 2024-08-07). diff --git a/lib/stdio.in.h b/lib/stdio.in.h index 3aee33c890..4a4d15822b 100644 --- a/lib/stdio.in.h +++ b/lib/stdio.in.h @@ -642,7 +642,9 @@ _GL_FUNCDECL_SYS (fpurge, int, (FILE *gl_stream) _GL_ARG_NONNULL ((1))); # endif _GL_CXXALIAS_SYS (fpurge, int, (FILE *gl_stream)); # endif +# if __GLIBC__ >= 2 _GL_CXXALIASWARN (fpurge); +# endif #elif defined GNULIB_POSIXCHECK # undef fpurge # if HAVE_RAW_DECL_FPURGE