]> 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 10:26:47 +0000 (12:26 +0200)
* lib/stdio.in.h (fpurge): Disable _GL_CXXALIASWARN invocation on
non-glibc systems.

ChangeLog
lib/stdio.in.h

index 947c7eece5a43cc8fad0f7ec321b30a417db8f12..2798f97b3768455175095d2b1b8298e25befe155 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 3aee33c890a1a5a37ccc7b03aa479abc854346d7..4a4d15822b8ec2fc48c7dfa4b84620f0c71a0c91 100644 (file)
@@ -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