Reported by Frédéric at <https://savannah.gnu.org/bugs/?65958>.
* modules/close (configure.ac): Invoke gl_MODULE_INDICATOR.
* lib/unistd.in.h (close): Don't define to
close_used_without_requesting_gnulib_module_close if the gnulib module
'close' is in use under the same configure.ac.
+2024-07-24 Bruno Haible <bruno@clisp.org>
+
+ Avoid false error close_used_without_requesting_gnulib_module_close.
+ Reported by Frédéric at <https://savannah.gnu.org/bugs/?65958>.
+ * modules/close (configure.ac): Invoke gl_MODULE_INDICATOR.
+ * lib/unistd.in.h (close): Don't define to
+ close_used_without_requesting_gnulib_module_close if the gnulib module
+ 'close' is in use under the same configure.ac.
+
2024-07-23 Bruno Haible <bruno@clisp.org>
getopt-posix, getopt-gnu tests: Avoid test failure on mingw.
# endif
_GL_CXXALIASWARN (close);
#elif @UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS@
-# undef close
-# define close close_used_without_requesting_gnulib_module_close
+# if !GNULIB_CLOSE
+# undef close
+# define close close_used_without_requesting_gnulib_module_close
+# endif
#elif defined GNULIB_POSIXCHECK
# undef close
/* Assume close is always declared. */
gl_FUNC_CLOSE
gl_CONDITIONAL([GL_COND_OBJ_CLOSE], [test $REPLACE_CLOSE = 1])
gl_UNISTD_MODULE_INDICATOR([close])
+gl_MODULE_INDICATOR([close])
Makefile.am:
if GL_COND_OBJ_CLOSE