inet_ntop: Support for MSVC on Windows Vista or newer.
authorBruno Haible <bruno@clisp.org>
Sat, 17 Sep 2011 12:56:11 +0000 (14:56 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 17 Sep 2011 12:56:11 +0000 (14:56 +0200)
commit91d0cb58387e1e52b7023bcd0b01c1337c0fb9c8
tree317dc512088c5a3a5bc973f6964b0aa092057364
parentabd89efaeb4366d99ad6407c415bce8d6bafb316
inet_ntop: Support for MSVC on Windows Vista or newer.

* lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
* lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
HAVE_DECL_INET_NTOP is defined.
* m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
On platforms with <winsock2.h>, test whether inet_ntop is declared in
<ws2tcpip.h>. If so, arrange to replace it.
* m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
REPLACE_INET_NTOP.
* modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
* modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
(Depends-on, configure.ac): Update condition.
* doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
ChangeLog
doc/posix-functions/inet_ntop.texi
lib/arpa_inet.in.h
lib/inet_ntop.c
m4/arpa_inet_h.m4
m4/inet_ntop.m4
modules/arpa_inet
modules/inet_ntop