On macOS 13 and 14 I'm seeing this compilation error: ../gllib/sys/select.h:822:19: error: declaration of 'select' has a different language linkage _GL_CXXALIASWARN (select); ^
This patch should fix it. 2024-05-17 Bruno Haible <br...@clisp.org> 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/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