changeset 10018:8406478f0d13

Ensure the system declares inet_ntop, inet_pton when possible.
author Bruno Haible <bruno@clisp.org>
date Wed, 30 Apr 2008 01:27:49 +0200
parents 6e074c9f695a
children e435c0a7bace
files ChangeLog m4/inet_ntop.m4 m4/inet_pton.m4 modules/inet_ntop modules/inet_pton
diffstat 5 files changed, 16 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Apr 29 22:04:47 2008 +0200
+++ b/ChangeLog	Wed Apr 30 01:27:49 2008 +0200
@@ -1,3 +1,11 @@
+2008-04-29  Bruno Haible  <bruno@clisp.org>
+
+	* m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
+	* m4/inet_pton.m4 (gl_INET_PTON): Likewise.
+	* modules/inet_ntop (Depends-on): Add extensions.
+	* modules/inet_pton (Depends-on): Likewise.
+	Reported by Simon Josefsson.
+
 2008-04-29  Jim Meyering  <meyering@redhat.com>
 
 	When the is more than one match in a block, match all of them.
--- a/m4/inet_ntop.m4	Tue Apr 29 22:04:47 2008 +0200
+++ b/m4/inet_ntop.m4	Wed Apr 30 01:27:49 2008 +0200
@@ -6,6 +6,9 @@
 
 AC_DEFUN([gl_INET_NTOP],
 [
+  dnl Persuade Solaris <arpa/inet.h> to declare inet_ntop.
+  AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
+
   AC_REQUIRE([gl_ARPA_INET_H_DEFAULTS])
   ARPA_INET_H='arpa/inet.h'
 
--- a/m4/inet_pton.m4	Tue Apr 29 22:04:47 2008 +0200
+++ b/m4/inet_pton.m4	Wed Apr 30 01:27:49 2008 +0200
@@ -6,6 +6,9 @@
 
 AC_DEFUN([gl_INET_PTON],
 [
+  dnl Persuade Solaris <arpa/inet.h> to declare inet_ntop.
+  AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
+
   AC_REQUIRE([gl_ARPA_INET_H_DEFAULTS])
   ARPA_INET_H='arpa/inet.h'
 
--- a/modules/inet_ntop	Tue Apr 29 22:04:47 2008 +0200
+++ b/modules/inet_ntop	Wed Apr 30 01:27:49 2008 +0200
@@ -10,6 +10,7 @@
 sys_socket
 arpa_inet
 netinet_in
+extensions
 
 configure.ac:
 gl_INET_NTOP
--- a/modules/inet_pton	Tue Apr 29 22:04:47 2008 +0200
+++ b/modules/inet_pton	Wed Apr 30 01:27:49 2008 +0200
@@ -10,6 +10,7 @@
 sys_socket
 arpa_inet
 netinet_in
+extensions
 
 configure.ac:
 gl_INET_PTON