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 372e145a70..5b3e242826 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,8 @@ +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 diff --git a/lib/inet_ntop.h b/lib/inet_ntop.h index b581ab1438..bd1e085aed 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 86c801c5c1..70f1c4b056 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 0e05e47a8b..bef89bba3f 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 a79eb677e6..c715f02659 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.30.2