]> Savannah Git Hosting - gnulib.git/commitdiff
stdio: Fix compilation error in C++ mode on Linux/riscv64 with musl.
authorBruno Haible <bruno@clisp.org>
Wed, 21 Aug 2024 21:22:26 +0000 (23:22 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 17 Sep 2024 12:42:15 +0000 (14:42 +0200)
* lib/stdio.in.h (fpurge): Disable _GL_CXXALIASWARN invocation on
non-glibc systems.

ChangeLog
lib/stdio.in.h

index aa25e076b67c02467f55ef1d9a1f57d90e5ad07c..469726c6f92f87134e2bb2b5d920b89419934748 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-08-21  Bruno Haible  <bruno@clisp.org>
+
+       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  <bruno@clisp.org>
 
        lock: Fix pthread-rwlock crashes with clang (regr. 2024-08-07).
index 0fdf762a19ff20d791dcd0107bba64ee53e4311f..99c9baf831a85d6f1321d235eb257284a066b7c8 100644 (file)
@@ -603,7 +603,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