]> Savannah Git Hosting - gnulib.git/commitdiff
Avoid false ioctl_used_without_requesting_gnulib_module_ioctl.
authorBruno Haible <bruno@clisp.org>
Wed, 24 Jul 2024 21:59:15 +0000 (23:59 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 12 Aug 2024 17:07:38 +0000 (19:07 +0200)
* 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.

ChangeLog
lib/sys_ioctl.in.h
modules/ioctl

index 4d1962472cff008432baf56ef1a39a5fee3ad9fb..4d2ab215e1766888e343e1d2d082d5822bea9a05 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index 787d35f75bd52e48f7f1c510bf0b0a66b4446c9d..5d031da944a33d1fd17e8cd50b3d6a7215809d0d 100644 (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
index a862891bc67999ced6718833fd3184f0318538c1..422f25d7765369923c56eadd75dc3713380d2117 100644 (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