Mercurial > hg > octave-lojdl > gnulib-hg
changeset 7062:532bc2e00710
Use arpa_inet in inet_?to?.
author | Simon Josefsson <simon@josefsson.org> |
---|---|
date | Fri, 28 Jul 2006 16:47:24 +0000 |
parents | 5f4be1386417 |
children | c5c751b9f184 |
files | ChangeLog lib/ChangeLog lib/inet_ntop.h lib/inet_pton.h modules/inet_ntop modules/inet_pton |
diffstat | 6 files changed, 14 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-07-28 Simon Josefsson <jas@extundo.com> + + * modules/inet_ntop (Depends-on): Depend on arpa_inet. + * modules/inet_pton (Depends-on): Likewise. + 2006-07-25 Bruno Haible <bruno@clisp.org> * modules/version-etc (Depends-on): Add stdarg.
--- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,8 @@ +2006-07-28 Simon Josefsson <jas@extundo.com> + + * inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h + #include's. + 2006-07-28 Bruno Haible <bruno@clisp.org> * inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
--- a/lib/inet_ntop.h +++ b/lib/inet_ntop.h @@ -20,9 +20,7 @@ #if HAVE_NETINET_IN_H # include <netinet/in.h> #endif -#if HAVE_ARPA_INET_H -# include <arpa/inet.h> -#endif +#include <arpa/inet.h> /* Converts an internet address from internal format to a printable, presentable format.
--- a/lib/inet_pton.h +++ b/lib/inet_pton.h @@ -20,9 +20,7 @@ #if HAVE_NETINET_IN_H # include <netinet/in.h> #endif -#if HAVE_ARPA_INET_H -# include <arpa/inet.h> -#endif +#include <arpa/inet.h> #if !HAVE_DECL_INET_PTON extern int inet_pton (int af, const char *restrict src, void *restrict dst);