Hash :
4844c043
Author :
Date :
2024-07-25T00:49:21
Avoid false bind_used_without_requesting_gnulib_module_bind. * modules/bind (configure.ac): Invoke gl_MODULE_INDICATOR. * lib/sys_socket.in.h (bind): Don't define to bind_used_without_requesting_gnulib_module_bind if the gnulib module 'bind' is in use under the same configure.ac.
Description:
bind() function: bind a server socket to a port.
Files:
lib/bind.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_BIND], [test "$ac_cv_header_winsock2_h" = yes])
gl_SYS_SOCKET_MODULE_INDICATOR([bind])
gl_MODULE_INDICATOR([bind])
Makefile.am:
if GL_COND_OBJ_BIND
lib_SOURCES += bind.c
endif
Include:
<sys/socket.h>
Link:
$(LIBSOCKET)
License:
LGPLv2+
Maintainer:
Paolo Bonzini, Simon Josefsson