From 5b7ca4bc4f68ee49bb1c548c48ec11101fde07b2 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 8 Apr 2023 09:47:10 +0200 Subject: [PATCH] time: Fix compilation error in C++ mode on Solaris 11. * lib/time.in.h (time): Disable _GL_CXXALIASWARN invocation on non-glibc systems. --- ChangeLog | 6 ++++++ lib/time.in.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index a0b1c8011d..6e78d73fa0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2023-04-08 Bruno Haible + + time: Fix compilation error in C++ mode on Solaris 11. + * lib/time.in.h (time): Disable _GL_CXXALIASWARN invocation on non-glibc + systems. + 2023-04-07 Bruno Haible unistdio/*: Fix test failures (regression 2023-01-28). diff --git a/lib/time.in.h b/lib/time.in.h index 3f9af920e3..f9b517a3dd 100644 --- a/lib/time.in.h +++ b/lib/time.in.h @@ -154,7 +154,9 @@ _GL_CXXALIAS_RPL (time, time_t, (time_t *__tp)); # else _GL_CXXALIAS_SYS (time, time_t, (time_t *__tp)); # endif +# if __GLIBC__ >= 2 _GL_CXXALIASWARN (time); +# endif # endif /* Sleep for at least RQTP seconds unless interrupted, If interrupted, -- 2.39.5