From 1f34a39d687d33ec86384c6bc7b7fb0677db7d54 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_select.in.h (select): Disable _GL_CXXALIASWARN invocation on non-glibc systems. --- ChangeLog | 6 ++++++ lib/sys_select.in.h | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e5688c345c..6a5d28c09c 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_select.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 3abfc48af0..ddf25d1de4 100644 --- a/lib/sys_select.in.h +++ b/lib/sys_select.in.h @@ -1,5 +1,5 @@ /* Substitute for . - Copyright (C) 2007-2023 Free Software Foundation, Inc. + Copyright (C) 2007-2024 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as @@ -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