svn commit: r238790 - head/sys/netinet

Michael Tuexen tuexen at FreeBSD.org
Thu Jul 26 08:10:30 UTC 2012


Author: tuexen
Date: Thu Jul 26 08:10:29 2012
New Revision: 238790
URL: http://svn.freebsd.org/changeset/base/238790

Log:
  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

Modified:
  head/sys/netinet/sctp_uio.h

Modified: head/sys/netinet/sctp_uio.h
==============================================================================
--- head/sys/netinet/sctp_uio.h	Thu Jul 26 08:05:28 2012	(r238789)
+++ head/sys/netinet/sctp_uio.h	Thu Jul 26 08:10:29 2012	(r238790)
@@ -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;
 };
 


More information about the svn-src-head mailing list