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