From fb96a449d412e7d1a0dbd38bb50e7f26c041f7b5 Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Sat, 13 Jan 2001 00:55:07 +0000 Subject: [PATCH] * sane_hostname.c: Switch off of KRB5_USE_INET6 instead of AF_INET6, which may be defined without a corresponding struct sockaddr_in6. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12901 dc483132-0cff-0310-8789-dd5450dbe970 --- src/util/pty/ChangeLog | 6 ++++++ 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 903e7bb30..a68dffa27 100644 --- a/src/util/pty/ChangeLog +++ b/src/util/pty/ChangeLog @@ -1,3 +1,9 @@ +2001-01-12 Tom Yu + + * 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 * 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 692e6e81a..d7512fa55 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 -- 2.26.2