From 395d9389d876626fe6424d1c0e3b95c59e3b5ae1 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 17 May 2024 12:09:30 +0200 Subject: [PATCH] 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. --- ChangeLog | 6 ++++++ lib/sys_select.in.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 8c78faa410..4b1d3cd5af 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-17 Bruno Haible putenv-gnu: Update documentation. 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 -- 2.39.5