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

ChangeLog
lib/sys_socket.in.h
modules/shutdown

index 9d6c85b8b4c5065711d0839c042b51daee3cbf25..be363154169c8c7f7f39f10e2d7ac2144991e322 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2024-07-24  Bruno Haible  <bruno@clisp.org>
 
+       Avoid false shutdown_used_without_requesting_gnulib_module_shutdown.
+       * modules/shutdown (configure.ac): Invoke gl_MODULE_INDICATOR.
+       * lib/sys_socket.in.h (shutdown): Don't define to
+       shutdown_used_without_requesting_gnulib_module_shutdown if the gnulib
+       module 'shutdown' is in use under the same configure.ac.
+
        Avoid false setsockopt_used_without_requesting_gnulib_module_setsockopt.
        * modules/setsockopt (configure.ac): Invoke gl_MODULE_INDICATOR.
        * lib/sys_socket.in.h (setsockopt): Don't define to
index 2c7fdcf1a8e502558e8615239a1224f8602c02e0..ac28bab1b80613991f71431d5fe2ad0ef2dd1f7f 100644 (file)
@@ -720,8 +720,10 @@ _GL_CXXALIAS_SYS (shutdown, int, (int fd, int how));
 # endif
 _GL_CXXALIASWARN (shutdown);
 #elif @HAVE_WINSOCK2_H@
-# undef shutdown
-# define shutdown shutdown_used_without_requesting_gnulib_module_shutdown
+# if !GNULIB_SHUTDOWN
+#  undef shutdown
+#  define shutdown shutdown_used_without_requesting_gnulib_module_shutdown
+# endif
 #elif defined GNULIB_POSIXCHECK
 # undef shutdown
 # if HAVE_RAW_DECL_SHUTDOWN
index 6af957a9c2a70895e313d358c0ce72dda68825ef..a2ff50f7c518ea1ffc9d0659397964a622f6e7b6 100644 (file)
@@ -15,6 +15,7 @@ configure.ac:
 AC_REQUIRE([gl_SYS_SOCKET_H])
 gl_CONDITIONAL([GL_COND_OBJ_SHUTDOWN], [test "$ac_cv_header_winsock2_h" = yes])
 gl_SYS_SOCKET_MODULE_INDICATOR([shutdown])
+gl_MODULE_INDICATOR([shutdown])
 
 Makefile.am:
 if GL_COND_OBJ_SHUTDOWN