* modules/shutdown (configure.ac): Invoke gl_MODULE_INDICATOR.
* lib/sys_socket.in.h (shutdown): Don't define to
shutdown_used_without_requesting_gnulib_module_shutdown if the gnulib
module 'shutdown' is in use under the same configure.ac.
2024-07-24 Bruno Haible <bruno@clisp.org>
+ Avoid false shutdown_used_without_requesting_gnulib_module_shutdown.
+ * modules/shutdown (configure.ac): Invoke gl_MODULE_INDICATOR.
+ * lib/sys_socket.in.h (shutdown): Don't define to
+ shutdown_used_without_requesting_gnulib_module_shutdown if the gnulib
+ module 'shutdown' is in use under the same configure.ac.
+
Avoid false setsockopt_used_without_requesting_gnulib_module_setsockopt.
* modules/setsockopt (configure.ac): Invoke gl_MODULE_INDICATOR.
* lib/sys_socket.in.h (setsockopt): Don't define to
# endif
_GL_CXXALIASWARN (shutdown);
#elif @HAVE_WINSOCK2_H@
-# undef shutdown
-# define shutdown shutdown_used_without_requesting_gnulib_module_shutdown
+# if !GNULIB_SHUTDOWN
+# undef shutdown
+# define shutdown shutdown_used_without_requesting_gnulib_module_shutdown
+# endif
#elif defined GNULIB_POSIXCHECK
# undef shutdown
# if HAVE_RAW_DECL_SHUTDOWN
AC_REQUIRE([gl_SYS_SOCKET_H])
gl_CONDITIONAL([GL_COND_OBJ_SHUTDOWN], [test "$ac_cv_header_winsock2_h" = yes])
gl_SYS_SOCKET_MODULE_INDICATOR([shutdown])
+gl_MODULE_INDICATOR([shutdown])
Makefile.am:
if GL_COND_OBJ_SHUTDOWN