]> 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>
Mon, 5 Sep 2022 01:58:15 +0000 (03:58 +0200)
* lib/sys_select.in.h (pselect): Enable the C++ alias warning only on
glibc systems.

ChangeLog
lib/sys_select.in.h

index 97f1a5a35e0f3d13fb72ed13471c8a087d4628f4..b17de5bf01f50b5d867ccf542da2894e3e248f85 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