diff options
Diffstat (limited to 'src/util/pty/sane_hostname.c')
-rw-r--r-- | src/util/pty/sane_hostname.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/util/pty/sane_hostname.c b/src/util/pty/sane_hostname.c index 692e6e81a1..d7512fa55b 100644 --- a/src/util/pty/sane_hostname.c +++ b/src/util/pty/sane_hostname.c @@ -2,7 +2,8 @@ * 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 @@ -33,7 +34,7 @@ sockaddrlen (const struct sockaddr *addr) #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 |