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