]> Savannah Git Hosting - gnulib.git/commitdiff
Avoid false recvfrom_used_without_requesting_gnulib_module_recvfrom.
authorBruno Haible <bruno@clisp.org>
Wed, 24 Jul 2024 23:19:20 +0000 (01:19 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 24 Jul 2024 23:19:20 +0000 (01:19 +0200)
* 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.

ChangeLog
lib/sys_socket.in.h
modules/recvfrom

index 92094d00ba0e55fa72e82d9621d6e6bb4df71409..73933068b75de839bcfdee229fdbacc2b10f04d2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 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
index 72907ffb34756726e31b3000641205c2a699c421..f8ed41d8ecad51965cc72dc09ef933e7e67d1c85 100644 (file)
@@ -629,8 +629,10 @@ _GL_CXXALIAS_SYS_CAST (recvfrom, ssize_t,
 _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
index cbf7e3a663ca2e0adabc079e0aea9c8da9a6075b..3cdd0a70a6c6dd82848c5e9708db1b6530a281b4 100644 (file)
@@ -17,6 +17,7 @@ configure.ac:
 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