From: Bruno Haible Date: Tue, 10 Jan 2023 08:10:48 +0000 (+0100) Subject: sys_ioctl: Fix compilation error in C++ mode on Android. X-Git-Tag: v1.0~1869 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=2ae488bd474c645299352025b104214b7c40da5d;p=gnulib.git sys_ioctl: Fix compilation error in C++ mode on Android. * lib/sys_ioctl.in.h (ioctl): Disable _GL_CXXALIASWARN invocation on non-glibc systems. --- diff --git a/ChangeLog b/ChangeLog index 92c89d730b..1bedaf0ebd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2023-01-10 Bruno Haible + + 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 threads-h: Improve portability. diff --git a/lib/sys_ioctl.in.h b/lib/sys_ioctl.in.h index 26acd19c8d..86840e45a9 100644 --- a/lib/sys_ioctl.in.h +++ b/lib/sys_ioctl.in.h @@ -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