* modules/stat (configure.ac): Invoke gl_MODULE_INDICATOR.
* lib/sys_stat.in.h (stat): Don't define to
stat_used_without_requesting_gnulib_module_stat if the gnulib module
'stat' is in use under the same configure.ac.
2024-07-24 Bruno Haible <bruno@clisp.org>
+ Avoid false stat_used_without_requesting_gnulib_module_stat.
+ * modules/stat (configure.ac): Invoke gl_MODULE_INDICATOR.
+ * lib/sys_stat.in.h (stat): Don't define to
+ stat_used_without_requesting_gnulib_module_stat if the gnulib module
+ 'stat' is in use under the same configure.ac.
+
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
# if @GNULIB_STAT@
# define stat rpl_stat
# else
- /* Provoke a clear link error if stat() is used as a function and
- module 'stat' is not in use. */
-# define stat stat_used_without_requesting_gnulib_module_stat
+# if !GNULIB_STAT
+ /* Provoke a clear link error if stat() is used as a function and
+ module 'stat' is not in use. */
+# define stat stat_used_without_requesting_gnulib_module_stat
+# endif
# endif
# if !GNULIB_defined_struct_stat
gl_PREREQ_STAT
])
gl_SYS_STAT_MODULE_INDICATOR([stat])
+gl_MODULE_INDICATOR([stat])
Makefile.am:
if GL_COND_OBJ_STAT