From: Bruno Haible Date: Fri, 17 May 2024 10:09:30 +0000 (+0200) Subject: sys_select: Fix compilation error in C++ mode on macOS 13, 14. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=1b22bbda8e1fec46506da844710a9d47c1228f63;p=gnulib.git sys_select: Fix compilation error in C++ mode on macOS 13, 14. * lib/sys_socket.in.h (select): Disable _GL_CXXALIASWARN invocation on non-glibc systems. --- diff --git a/ChangeLog b/ChangeLog index fd40f0461a..20235848d1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2024-05-17 Bruno Haible + + sys_select: Fix compilation error in C++ mode on macOS 13, 14. + * lib/sys_socket.in.h (select): Disable _GL_CXXALIASWARN invocation on + non-glibc systems. + 2024-05-11 Bruno Haible error-h: Avoid namespace pollution on mingw. diff --git a/lib/sys_select.in.h b/lib/sys_select.in.h index de29c77949..ddf25d1de4 100644 --- a/lib/sys_select.in.h +++ b/lib/sys_select.in.h @@ -328,7 +328,9 @@ _GL_CXXALIAS_SYS (select, int, (int, fd_set *restrict, fd_set *restrict, fd_set *restrict, timeval *restrict)); # endif +# if __GLIBC__ >= 2 _GL_CXXALIASWARN (select); +# endif #elif @HAVE_WINSOCK2_H@ # undef select # define select select_used_without_requesting_gnulib_module_select