From: Ken Raeburn Date: Wed, 9 Jan 2002 03:25:02 +0000 (+0000) Subject: * socket-utils.h (ss2sin6) [__GNUC__]: Define inline function only if IPv6 support... X-Git-Tag: krb5-1.3-alpha1~894 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9d873dc3bf4fff2dcdd46f1c7d1e5042b9ddba89;p=krb5.git * socket-utils.h (ss2sin6) [__GNUC__]: Define inline function only if IPv6 support is turned on git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14098 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/include/ChangeLog b/src/include/ChangeLog index 5fb4eb89e..35c585a3e 100644 --- a/src/include/ChangeLog +++ b/src/include/ChangeLog @@ -1,3 +1,8 @@ +2002-01-08 Ken Raeburn + + * socket-utils.h (ss2sin6) [__GNUC__]: Define inline function only + if IPv6 support is turned on. + 2001-12-07 Ezra Peisach * k5-int.h (krb5int_des_init_state): Change variable name in diff --git a/src/include/socket-utils.h b/src/include/socket-utils.h index 870fbc672..82e85f178 100644 --- a/src/include/socket-utils.h +++ b/src/include/socket-utils.h @@ -94,10 +94,12 @@ static __inline__ struct sockaddr_in *ss2sin (struct sockaddr_storage *ss) { return (struct sockaddr_in *) ss; } +#ifdef KRB5_USE_INET6 static __inline__ struct sockaddr_in6 *ss2sin6 (struct sockaddr_storage *ss) { return (struct sockaddr_in6 *) ss; } +#endif #else #define sa2sin(S) ((struct sockaddr_in *)(S)) #define sa2sin6(S) ((struct sockaddr_in6 *)(S))