Fix the sctp_sockstore union such that userland programs don't depend

on INET and/or INET6 to be defined and in-tune with how the kernel
was compiled.

MFC after:	3 days
Discussed with:	rrs
This commit is contained in:
Michael Tuexen 2012-07-26 08:10:29 +00:00
parent aaa1966f6b
commit 77db9ed99e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=238790

View File

@ -1124,12 +1124,8 @@ struct sctpstat {
#define SCTP_STAT_DECR_GAUGE32(_x) SCTP_STAT_DECR(_x)
union sctp_sockstore {
#if defined(INET)
struct sockaddr_in sin;
#endif
#if defined(INET6)
struct sockaddr_in6 sin6;
#endif
struct sockaddr sa;
};