+2001-01-12 Tom Yu <tlyu@mit.edu>
+
+ * sane_hostname.c: Switch off of KRB5_USE_INET6 instead of
+ AF_INET6, which may be defined without a corresponding struct
+ sockaddr_in6.
+
2000-12-06 Ken Raeburn <raeburn@mit.edu>
* sane_hostname.c (pty_make_sane_hostname, do_ntoa): Pass address
* pty_make_sane_hostname: Make a sane hostname from an IP address.
* This returns allocated memory!
*
- * Copyright 1999,2000 by the Massachusetts Institute of Technology.
+ * Copyright 1999, 2000, 2001 by the Massachusetts Institute of
+ * Technology.
*
* Permission to use, copy, modify, and distribute this software and
* its documentation for any purpose and without fee is hereby
#else
if (addr->sa_family == AF_INET)
return sizeof (struct sockaddr_in);
-#ifdef AF_INET6
+#ifdef KRB5_USE_INET6
if (addr->sa_family == AF_INET6)
return sizeof (struct sockaddr_in6);
#endif