Ensure the system declares inet_ntop, inet_pton when possible.
authorBruno Haible <bruno@clisp.org>
Tue, 29 Apr 2008 23:27:49 +0000 (01:27 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 29 Apr 2008 23:27:49 +0000 (01:27 +0200)
ChangeLog
m4/inet_ntop.m4
m4/inet_pton.m4
modules/inet_ntop
modules/inet_pton

index eb4e64b..ab0e292 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index ee7ba51..342cd28 100644 (file)
@@ -6,6 +6,9 @@ dnl with or without modifications, as long as this notice is preserved.
 
 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'
 
index 4ea89d2..7d7f993 100644 (file)
@@ -6,6 +6,9 @@ dnl with or without modifications, as long as this notice is preserved.
 
 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'
 
index a83ea80..98df38e 100644 (file)
@@ -10,6 +10,7 @@ socklen
 sys_socket
 arpa_inet
 netinet_in
+extensions
 
 configure.ac:
 gl_INET_NTOP
index 74a68b7..642b8fc 100644 (file)
@@ -10,6 +10,7 @@ socklen
 sys_socket
 arpa_inet
 netinet_in
+extensions
 
 configure.ac:
 gl_INET_PTON