]> Savannah Git Hosting - gnulib.git/commitdiff
sys_ioctl: Fix compilation error in C++ mode on Android.
authorBruno Haible <bruno@clisp.org>
Tue, 10 Jan 2023 08:10:48 +0000 (09:10 +0100)
committerBruno Haible <bruno@clisp.org>
Tue, 10 Jan 2023 08:10:48 +0000 (09:10 +0100)
* lib/sys_ioctl.in.h (ioctl): Disable _GL_CXXALIASWARN invocation on
non-glibc systems.

ChangeLog
lib/sys_ioctl.in.h

index 92c89d730b691c6ed2401b0bcbeca3e1cb89e623..1bedaf0ebdb6705076a26b74e08874617defa560 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2023-01-10  Bruno Haible  <bruno@clisp.org>
+
+       sys_ioctl: Fix compilation error in C++ mode on Android.
+       * lib/sys_ioctl.in.h (ioctl): Disable _GL_CXXALIASWARN invocation on
+       non-glibc systems.
+
 2023-01-09  Bruno Haible  <bruno@clisp.org>
 
        threads-h: Improve portability.
index 26acd19c8da050d6ebee96894cab34f82f1c0693..86840e45a91312c52cda6c002450f00507cce203 100644 (file)
@@ -62,7 +62,9 @@ _GL_FUNCDECL_SYS (ioctl, int,
 _GL_CXXALIAS_SYS (ioctl, int,
                   (int fd, int request, ... /* {void *,char *} arg */));
 # endif
+# if __GLIBC__ >= 2
 _GL_CXXALIASWARN (ioctl);
+# endif
 #elif @SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS@
 # undef ioctl
 # define ioctl ioctl_used_without_requesting_gnulib_module_ioctl