]> Savannah Git Hosting - gnulib.git/commitdiff
Avoid false accept_used_without_requesting_gnulib_module_accept.
authorBruno Haible <bruno@clisp.org>
Wed, 24 Jul 2024 22:47:45 +0000 (00:47 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 12 Aug 2024 16:01:09 +0000 (18:01 +0200)
* 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.

ChangeLog
lib/sys_socket.in.h
modules/accept

index b220aca902799105e83933c5851ea1fc718c6b02..81e7fb8f1f10b34b2f6420a69e6b6648c39ee64a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 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
index 19c919c1317d829f5df52b075a62f93a1cd51512..cf20718ade2694222fb0cad169d7a562b24964db 100644 (file)
@@ -366,8 +366,10 @@ _GL_CXXALIAS_SYS_CAST (accept, int,
 _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
index 483b5364ec70557f6ee1480a776147c2d884614a..875d90cadbcac3269f4a06bedf5b5b4d3820e358 100644 (file)
@@ -16,6 +16,7 @@ configure.ac:
 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