Hash :
c6ced39e
Author :
Date :
2024-08-11T13:53:48
htonl: Fix link errors on Windows. Reported by Bruno Haible in: <https://lists.gnu.org/archive/html/bug-gnulib/2024-08/msg00066.html>. * lib/arpa_inet.in.h (htons, htonl, ntohs, ntohl): Only define when not declared by the system. * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set default behavior for htonl functions. * m4/htonl.m4 (gl_FUNC_HTONL): Check if -lws2_32 is required. Only check for declarations on POSIX systems. * modules/arpa_inet (Makefile.am): Substitute new Makefile variables. * modules/htonl (Files): Add m4/sys_socket_h.m4. (Depends-on): Remove endian condition. (Link): Add $(HOTNL_LIB). * modules/htonl-tests: Link to @HTONL_LIB@.