]> 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>
Mon, 12 Aug 2024 16:01:30 +0000 (18:01 +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 735d1f143bfc697f4e5ca240c453211e227ec5f7..b87f4aa3352f842c59c1aca7ba4bd15dc69efc35 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