]> Savannah Git Hosting - gnulib.git/commitdiff
time: Fix compilation error in C++ mode on Solaris 11.
authorBruno Haible <bruno@clisp.org>
Sat, 8 Apr 2023 07:47:10 +0000 (09:47 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 8 Apr 2023 07:47:10 +0000 (09:47 +0200)
* lib/time.in.h (time): Disable _GL_CXXALIASWARN invocation on non-glibc
systems.

ChangeLog
lib/time.in.h

index a0b1c8011d19df61cd3432c8f492dc0fe206e801..6e78d73fa08eadf9117e0269df402eda4e5c28ae 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2023-04-08  Bruno Haible  <bruno@clisp.org>
+
+       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  <bruno@clisp.org>
 
        unistdio/*: Fix test failures (regression 2023-01-28).
index 3f9af920e340c1d47b714bdaec4bc4323cccfa62..f9b517a3dd11bcc1eb08a7a0869eba2aba9bc205 100644 (file)
@@ -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,