]> Savannah Git Hosting - gnulib.git/commitdiff
pselect: Fix compilation error in C++ mode on mingw.
authorBruno Haible <bruno@clisp.org>
Sun, 4 Sep 2022 13:51:29 +0000 (15:51 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 4 Sep 2022 13:51:29 +0000 (15:51 +0200)
* lib/sys_select.in.h (pselect): Enable the C++ alias warning only on
glibc systems.

ChangeLog
lib/sys_select.in.h

index 11bbd8f721edf48892cbb8a640d507945d53f5ea..e32ac47f6b3e5b52d0aceb5c2c3621f9b3167783 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2022-09-04  Bruno Haible  <bruno@clisp.org>
+
+       pselect: Fix compilation error in C++ mode on mingw.
+       * lib/sys_select.in.h (pselect): Enable the C++ alias warning only on
+       glibc systems.
+
 2022-09-04  Bruno Haible  <bruno@clisp.org>
 
        nanosleep: Work around bug on newer 32-bit mingw.
index b424f1b8033ead6a69754e9ceb41ec05f0f113c1..860e957fe0f01de0a3a117d323b5d74bcf7edef1 100644 (file)
@@ -288,7 +288,9 @@ _GL_CXXALIAS_SYS_CAST (pselect, int,
                         struct timespec const *restrict,
                         const sigset_t *restrict));
 # endif
+# if __GLIBC__ >= 2
 _GL_CXXALIASWARN (pselect);
+# endif
 #elif defined GNULIB_POSIXCHECK
 # undef pselect
 # if HAVE_RAW_DECL_PSELECT