Mercurial > hg > octave-kai > gnulib-hg
changeset 7064:9f7f0714a40a
Use netinet_in module.
author | Simon Josefsson <simon@josefsson.org> |
---|---|
date | Fri, 28 Jul 2006 17:27:50 +0000 |
parents | c5c751b9f184 |
children | cae41cb69541 |
files | lib/ChangeLog lib/inet_ntop.h lib/inet_pton.h modules/inet_ntop modules/inet_pton |
diffstat | 5 files changed, 9 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- 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 netinet/in.h + #include's. + 2006-07-28 Simon Josefsson <jas@extundo.com> * inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
--- a/lib/inet_ntop.h +++ b/lib/inet_ntop.h @@ -17,9 +17,7 @@ #include <sys/types.h> #include <sys/socket.h> -#if HAVE_NETINET_IN_H -# include <netinet/in.h> -#endif +#include <netinet/in.h> #include <arpa/inet.h> /* Converts an internet address from internal format to a printable,
--- a/lib/inet_pton.h +++ b/lib/inet_pton.h @@ -17,9 +17,7 @@ #include <sys/types.h> #include <sys/socket.h> -#if HAVE_NETINET_IN_H -# include <netinet/in.h> -#endif +#include <netinet/in.h> #include <arpa/inet.h> #if !HAVE_DECL_INET_PTON