Hash :
82b8cf8d
Author :
Date :
2024-07-25T01:21:45
Avoid false sendto_used_without_requesting_gnulib_module_sendto. * modules/sendto (configure.ac): Invoke gl_MODULE_INDICATOR. * lib/sys_socket.in.h (sendto): Don't define to sendto_used_without_requesting_gnulib_module_sendto if the gnulib module 'sendto' is in use under the same configure.ac.
Description:
sendto() function: send (write) data to a potentially unconnected socket.
Files:
lib/sendto.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_SENDTO], [test "$ac_cv_header_winsock2_h" = yes])
gl_SYS_SOCKET_MODULE_INDICATOR([sendto])
gl_MODULE_INDICATOR([sendto])
Makefile.am:
if GL_COND_OBJ_SENDTO
lib_SOURCES += sendto.c
endif
Include:
<sys/socket.h>
Link:
$(LIBSOCKET)
License:
LGPLv2+
Maintainer:
Paolo Bonzini, Simon Josefsson