mirror of
https://git.savannah.gnu.org/git/gnulib.git
synced 2025-08-16 01:22:18 +03:00
* 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.
31 lines
828 B
Plaintext
31 lines
828 B
Plaintext
@node inet_ntop
|
|
@section @code{inet_ntop}
|
|
@findex inet_ntop
|
|
|
|
POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/inet_ntop.html}
|
|
|
|
Gnulib module: inet_ntop
|
|
|
|
Portability problems fixed by Gnulib:
|
|
@itemize
|
|
@item
|
|
This function is missing on some platforms:
|
|
HP-UX 11.00, OSF/1 4.0, Solaris 2.5.1, mingw, MSVC 9, Interix 3.5, BeOS.
|
|
@item
|
|
This function is declared in @code{<netdb.h>} instead of @code{<arpa/inet.h>}
|
|
on some platforms:
|
|
NonStop Kernel.
|
|
@item
|
|
This function is declared in @code{<ws2tcpip.h>}, with a POSIX incompatible
|
|
declaration, on some platforms:
|
|
MSVC 9 on Windows >= Vista.
|
|
@end itemize
|
|
|
|
Portability problems not fixed by Gnulib:
|
|
@itemize
|
|
@item
|
|
This function's fourth argument type is @code{size_t} instead of
|
|
@code{socklen_t} on some platforms:
|
|
OSF/1 5.1, Solaris 10.
|
|
@end itemize
|