From: Bruno Haible Date: Sun, 4 Sep 2022 13:51:29 +0000 (+0200) Subject: pselect: Fix compilation error in C++ mode on mingw. X-Git-Tag: v1.0~2077 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=ebad216bd6d171d4111bac002fd8db3ccae4ba4d;p=gnulib.git pselect: Fix compilation error in C++ mode on mingw. * lib/sys_select.in.h (pselect): Enable the C++ alias warning only on glibc systems. --- diff --git a/ChangeLog b/ChangeLog index 11bbd8f721..e32ac47f6b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2022-09-04 Bruno Haible + + 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 nanosleep: Work around bug on newer 32-bit mingw. diff --git a/lib/sys_select.in.h b/lib/sys_select.in.h index b424f1b803..860e957fe0 100644 --- a/lib/sys_select.in.h +++ b/lib/sys_select.in.h @@ -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