]> Savannah Git Hosting - gnulib.git/commitdiff
Avoid false socket_used_without_requesting_gnulib_module_connect.
authorBruno Haible <bruno@clisp.org>
Wed, 24 Jul 2024 22:41:00 +0000 (00:41 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 12 Aug 2024 17:07:53 +0000 (19:07 +0200)
* modules/connect (configure.ac): Invoke gl_MODULE_INDICATOR.
* lib/sys_socket.in.h (connect): Don't define to
socket_used_without_requesting_gnulib_module_connect if the gnulib
module 'connect' is in use under the same configure.ac. Fix typo.

ChangeLog
lib/sys_socket.in.h
modules/connect

index c3b4a3b44ba6f07b101e9624b30552bea6e5d19c..ce93bbb1dc052210357644638f123ea6eccac570 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2024-07-24  Bruno Haible  <bruno@clisp.org>
 
+       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
+       socket_used_without_requesting_gnulib_module_connect if the gnulib
+       module 'connect' is in use under the same configure.ac. Fix typo.
+
        Avoid false socket_used_without_requesting_gnulib_module_socket.
        * modules/socket (configure.ac): Invoke gl_MODULE_INDICATOR.
        * lib/sys_socket.in.h (socket): Don't define to
index 28b2d6c0e03274bfc60104d631e7319337a77a84..19c919c1317d829f5df52b075a62f93a1cd51512 100644 (file)
@@ -328,8 +328,10 @@ _GL_CXXALIAS_SYS_CAST (connect, int,
 # endif
 _GL_CXXALIASWARN (connect);
 #elif @HAVE_WINSOCK2_H@
-# undef connect
-# define connect socket_used_without_requesting_gnulib_module_connect
+# if !GNULIB_CONNECT
+#  undef connect
+#  define connect connect_used_without_requesting_gnulib_module_connect
+# endif
 #elif defined GNULIB_POSIXCHECK
 # undef connect
 # if HAVE_RAW_DECL_CONNECT
index cd21697b757d428d43771f3dbe770fef30f36e6e..d56088f30f030ed4b4a744dbba7f32ee9f8dcf01 100644 (file)
@@ -15,6 +15,7 @@ configure.ac:
 AC_REQUIRE([gl_SYS_SOCKET_H])
 gl_CONDITIONAL([GL_COND_OBJ_CONNECT], [test "$ac_cv_header_winsock2_h" = yes])
 gl_SYS_SOCKET_MODULE_INDICATOR([connect])
+gl_MODULE_INDICATOR([connect])
 
 Makefile.am:
 if GL_COND_OBJ_CONNECT