diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/util/pty/ChangeLog | 6 | ||||
-rw-r--r-- | src/util/pty/sane_hostname.c | 5 |
2 files changed, 9 insertions, 2 deletions
diff --git a/src/util/pty/ChangeLog b/src/util/pty/ChangeLog index 903e7bb30d..a68dffa279 100644 --- a/src/util/pty/ChangeLog +++ b/src/util/pty/ChangeLog @@ -1,3 +1,9 @@ +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 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 |