Work around lseek bug on BeOS.
[gnulib.git] / lib / inet_pton.c
index f2b58bb..5ec88a4 100644 (file)
@@ -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 <config.h>
-#endif
+#include <config.h>
 
 /* 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