X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Finet_ntop.c;h=16eb109210e2e59658073c9576096eb9eb8d659a;hb=159eae9ff30acac95b6d397f053df8cd6fca62a3;hp=34574be072cb4db24ba365c02ceade2988055f06;hpb=3f06ea00c68987ce00dd1f48e344a31102306fd1;p=gnulib.git diff --git a/lib/inet_ntop.c b/lib/inet_ntop.c index 34574be07..16eb10921 100644 --- a/lib/inet_ntop.c +++ b/lib/inet_ntop.c @@ -1,5 +1,6 @@ /* inet_ntop.c -- convert IPv4 and IPv6 addresses from binary to text form - Copyright (c) 2005, 2006 Free Software Foundation, Inc. + + Copyright (C) 2005, 2006, 2008 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -32,12 +33,10 @@ * SOFTWARE. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include /* Specification. */ -#include "inet_ntop.h" +#include #include #include @@ -76,8 +75,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: