From 03625c488af8f80f2f745165a7c8840338e7eb03 Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Fri, 28 Jul 2006 17:27:50 +0000 Subject: [PATCH] Use netinet_in module. --- lib/ChangeLog | 5 +++++ lib/inet_ntop.h | 4 +--- lib/inet_pton.h | 4 +--- modules/inet_ntop | 1 + modules/inet_pton | 1 + 5 files changed, 9 insertions(+), 6 deletions(-) diff --git a/lib/ChangeLog b/lib/ChangeLog index 372e145a7..5b3e24282 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,5 +1,10 @@ 2006-07-28 Simon Josefsson + * inet_ntop.h, inet_pton.h: No need to guard netinet/in.h + #include's. + +2006-07-28 Simon Josefsson + * inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h #include's. diff --git a/lib/inet_ntop.h b/lib/inet_ntop.h index b581ab143..bd1e085ae 100644 --- a/lib/inet_ntop.h +++ b/lib/inet_ntop.h @@ -17,9 +17,7 @@ #include #include -#if HAVE_NETINET_IN_H -# include -#endif +#include #include /* Converts an internet address from internal format to a printable, diff --git a/lib/inet_pton.h b/lib/inet_pton.h index 86c801c5c..70f1c4b05 100644 --- a/lib/inet_pton.h +++ b/lib/inet_pton.h @@ -17,9 +17,7 @@ #include #include -#if HAVE_NETINET_IN_H -# include -#endif +#include #include #if !HAVE_DECL_INET_PTON diff --git a/modules/inet_ntop b/modules/inet_ntop index 0e05e47a8..bef89bba3 100644 --- a/modules/inet_ntop +++ b/modules/inet_ntop @@ -11,6 +11,7 @@ restrict socklen sys_socket arpa_inet +netinet_in configure.ac: gl_INET_NTOP diff --git a/modules/inet_pton b/modules/inet_pton index a79eb677e..c715f0265 100644 --- a/modules/inet_pton +++ b/modules/inet_pton @@ -11,6 +11,7 @@ restrict socklen sys_socket arpa_inet +netinet_in configure.ac: gl_INET_PTON -- 2.11.0