From: Bruno Haible Date: Sat, 8 Apr 2023 07:47:10 +0000 (+0200) Subject: time: Fix compilation error in C++ mode on Solaris 11. X-Git-Tag: v1.0~1489 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=5b7ca4bc4f68ee49bb1c548c48ec11101fde07b2;p=gnulib.git time: Fix compilation error in C++ mode on Solaris 11. * lib/time.in.h (time): Disable _GL_CXXALIASWARN invocation on non-glibc systems. --- 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,