]> 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:35:31 +0000 (01:35 +0200)
* lib/sys_select.in.h (select): Disable _GL_CXXALIASWARN invocation on
non-glibc systems.

ChangeLog
lib/sys_select.in.h

index e5688c345c9bc8c93aab8592469659be6d1e0332..6a5d28c09c9f0904cb84fe75b363ea5ceb3359d7 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_select.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 3abfc48af09ec32cd743f9c928db317624ea20d8..ddf25d1de4c48e48351f88b8cc0ccd9d6b54f046 100644 (file)
@@ -1,5 +1,5 @@
 /* Substitute for <sys/select.h>.
-   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