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