Ensure the system declares inet_ntop, inet_pton when possible.
[gnulib.git] / m4 / inet_ntop.m4
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'