/* 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 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
* SOFTWARE.
*/
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
+#include <config.h>
/* Specification. */
#include "inet_ntop.h"
{
switch (af)
{
+#if HAVE_IPV4
case AF_INET:
return (inet_ntop4 (src, dst, cnt));
+#endif
#if HAVE_IPV6
case AF_INET6: