Revert slightly, from Bruno.
authorSimon Josefsson <simon@josefsson.org>
Mon, 19 Jun 2006 12:28:18 +0000 (12:28 +0000)
committerSimon Josefsson <simon@josefsson.org>
Mon, 19 Jun 2006 12:28:18 +0000 (12:28 +0000)
lib/inet_ntop.c

index 34574be072cb4db24ba365c02ceade2988055f06..8329c827dbc9042eb01912f0e47a21813deacbbf 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: