X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Finet_pton.c;h=5ec88a43acb7deb11f11ccb7a2704b4b60334a46;hb=943135931d5db0e1579e5b743e5c13dd5cc47158;hp=f2b58bb633a9bc0d9c52389c9d066c68dd6ecf1e;hpb=cf357e415055e3979d0f0d72b3046022f4bb7812;p=gnulib.git diff --git a/lib/inet_pton.c b/lib/inet_pton.c index f2b58bb63..5ec88a43a 100644 --- a/lib/inet_pton.c +++ b/lib/inet_pton.c @@ -1,5 +1,6 @@ /* inet_pton.c -- convert IPv4 and IPv6 addresses from text to binary form - Copyright (c) 2006 Free Software Foundation, Inc. + + Copyright (C) 2006 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,9 +33,7 @@ * SOFTWARE. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include /* Specification. */ #include "inet_pton.h" @@ -80,7 +79,7 @@ inet_pton (int af, const char *restrict src, void *restrict dst) case AF_INET: return (inet_pton4 (src, dst)); -#if HAVE_IPV4 +#if HAVE_IPV6 case AF_INET6: return (inet_pton6 (src, dst)); #endif