]> Savannah Git Hosting - gnulib.git/commitdiff
sys_select: Fix compilation error in C++ mode on macOS 13, 14.
authorBruno Haible <bruno@clisp.org>
Fri, 17 May 2024 10:09:30 +0000 (12:09 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 17 May 2024 23:15:04 +0000 (01:15 +0200)
* lib/sys_socket.in.h (select): Disable _GL_CXXALIASWARN invocation on
non-glibc systems.

ChangeLog
lib/sys_select.in.h

index fd40f0461ab0b6e55ab1a922c9982961ccc7208b..20235848d16267f6d00ff604343283c7777cc69d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-05-17  Bruno Haible  <bruno@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.
+
 2024-05-11  Bruno Haible  <bruno@clisp.org>
 
        error-h: Avoid namespace pollution on mingw.
index de29c77949af528c7d00a0e4e8ac641da0c8821e..ddf25d1de4c48e48351f88b8cc0ccd9d6b54f046 100644 (file)
@@ -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