Mercurial > hg > octave-kai > gnulib-hg
changeset 14436:ff4cf3c8b89b
inet_ntop, inet_pton: Simplify.
* modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
documented to provide socklen_t and we already depend on sys_socket.
* modules/inet_pton (Depends-on): Likewise.
* lib/arpa_inet.in.h: Adjust comment.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Sat, 19 Mar 2011 13:58:17 +0100 |
parents | 77e1808cbbb6 |
children | 9a53138b000a |
files | ChangeLog lib/arpa_inet.in.h modules/inet_ntop modules/inet_pton |
diffstat | 4 files changed, 11 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2011-03-19 Paul Eggert <eggert@cs.ucla.edu> + Bruno Haible <bruno@clisp.org> + + inet_ntop, inet_pton: Simplify. + * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is + documented to provide socklen_t and we already depend on sys_socket. + * modules/inet_pton (Depends-on): Likewise. + * lib/arpa_inet.in.h: Adjust comment. + 2011-03-19 Paul Eggert <eggert@cs.ucla.edu> Bruno Haible <bruno@clisp.org>
--- a/lib/arpa_inet.in.h +++ b/lib/arpa_inet.in.h @@ -27,8 +27,8 @@ # include <features.h> /* for __GLIBC__ */ #endif -/* Gnulib's sys/socket.h is responsible for pulling in winsock2.h etc - under MinGW. +/* Gnulib's sys/socket.h is responsible for defining socklen_t (used below) and + for pulling in winsock2.h etc. under MinGW. But avoid namespace pollution on glibc systems. */ #ifndef __GLIBC__ # include <sys/socket.h>