Hash :
0f1c7034
Author :
Date :
2024-07-25T01:27:32
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.
Description:
shutdown() function: initiate a graceful shutdown of a socket.
Files:
lib/shutdown.c
lib/w32sock.h
Depends-on:
sys_socket
socketlib
errno [test "$ac_cv_header_winsock2_h" = yes]
msvc-nothrow [test "$ac_cv_header_winsock2_h" = yes]
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
lib_SOURCES += shutdown.c
endif
Include:
<sys/socket.h>
Link:
$(LIBSOCKET)
License:
LGPLv2+
Maintainer:
Paolo Bonzini, Simon Josefsson