* wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
[gnulib.git] / lib / inet_ntop.c
index 34574be..8329c82 100644 (file)
@@ -76,8 +76,10 @@ inet_ntop (int af, const void *restrict src,
 {
   switch (af)
     {
+#if HAVE_IPV4
     case AF_INET:
       return (inet_ntop4 (src, dst, cnt));
+#endif
 
 #if HAVE_IPV6
     case AF_INET6: