From b763e8738d8fd62b53f1c5f7284c403d4eca78b5 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 4 Sep 2022 15:51:29 +0200 Subject: [PATCH] pselect: Fix compilation error in C++ mode on mingw. * lib/sys_select.in.h (pselect): Enable the C++ alias warning only on glibc systems. --- ChangeLog | 6 ++++++ lib/sys_select.in.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 79c81fd113..4961bbbb6c 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 -- 2.39.5