]> Savannah Git Hosting - gnulib.git/commitdiff
Avoid false send_used_without_requesting_gnulib_module_send.
authorBruno Haible <bruno@clisp.org>
Wed, 24 Jul 2024 23:17:33 +0000 (01:17 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 12 Aug 2024 16:01:28 +0000 (18:01 +0200)
* modules/send (configure.ac): Invoke gl_MODULE_INDICATOR.
* lib/sys_socket.in.h (send): Don't define to
send_used_without_requesting_gnulib_module_send if the gnulib module
'send' is in use under the same configure.ac.

ChangeLog
lib/sys_socket.in.h
modules/send

index d0b045cfe349e59c53f87a59398f3146cf9e799c..735d1f143bfc697f4e5ca240c453211e227ec5f7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2024-07-24  Bruno Haible  <bruno@clisp.org>
 
+       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
+       send_used_without_requesting_gnulib_module_send if the gnulib module
+       'send' is in use under the same configure.ac.
+
        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
index 7e9562c53567798119c3b782797001c57902f989..72907ffb34756726e31b3000641205c2a699c421 100644 (file)
@@ -590,8 +590,10 @@ _GL_CXXALIAS_SYS_CAST (send, ssize_t,
 # endif
 _GL_CXXALIASWARN (send);
 #elif @HAVE_WINSOCK2_H@
-# undef send
-# define send send_used_without_requesting_gnulib_module_send
+# if !GNULIB_SEND
+#  undef send
+#  define send send_used_without_requesting_gnulib_module_send
+# endif
 #elif defined GNULIB_POSIXCHECK
 # undef send
 # if HAVE_RAW_DECL_SEND
index 6584aec9aed31152ea5479d0e16037a0f610776b..974d16935545f192e2eb44ed345474d4362a2e9c 100644 (file)
@@ -15,6 +15,7 @@ configure.ac:
 AC_REQUIRE([gl_SYS_SOCKET_H])
 gl_CONDITIONAL([GL_COND_OBJ_SEND], [test "$ac_cv_header_winsock2_h" = yes])
 gl_SYS_SOCKET_MODULE_INDICATOR([send])
+gl_MODULE_INDICATOR([send])
 
 Makefile.am:
 if GL_COND_OBJ_SEND