Avoid false ioctl_used_without_requesting_gnulib_module_ioctl.

* modules/ioctl (configure.ac): Invoke gl_MODULE_INDICATOR.
* lib/sys_ioctl.in.h (ioctl): Don't define to
ioctl_used_without_requesting_gnulib_module_ioctl if the gnulib module
'ioctl' is in use under the same configure.ac.
This commit is contained in:
Bruno Haible
2024-07-24 23:59:15 +02:00
parent 91132b444b
commit fb1bca6079
3 changed files with 11 additions and 2 deletions
+6
View File
@@ -1,5 +1,11 @@
2024-07-24 Bruno Haible <bruno@clisp.org>
Avoid false ioctl_used_without_requesting_gnulib_module_ioctl.
* modules/ioctl (configure.ac): Invoke gl_MODULE_INDICATOR.
* lib/sys_ioctl.in.h (ioctl): Don't define to
ioctl_used_without_requesting_gnulib_module_ioctl if the gnulib module
'ioctl' is in use under the same configure.ac.
Avoid false localeconv_used_without_requesting_gnulib_module_localeconv.
* modules/localeconv (configure.ac): Invoke gl_MODULE_INDICATOR.
* lib/locale.in.h (localeconv): Don't define to
+4 -2
View File
@@ -71,8 +71,10 @@ _GL_CXXALIAS_SYS (ioctl, int,
_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
# if !GNULIB_IOCTL
# undef ioctl
# define ioctl ioctl_used_without_requesting_gnulib_module_ioctl
# endif
#elif defined GNULIB_POSIXCHECK
# undef ioctl
# if HAVE_RAW_DECL_IOCTL
+1
View File
@@ -18,6 +18,7 @@ gl_FUNC_IOCTL
gl_CONDITIONAL([GL_COND_OBJ_IOCTL],
[test $HAVE_IOCTL = 0 || test $REPLACE_IOCTL = 1])
gl_SYS_IOCTL_MODULE_INDICATOR([ioctl])
gl_MODULE_INDICATOR([ioctl])
Makefile.am:
if GL_COND_OBJ_IOCTL