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