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