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