Move in6_addr's s6_addr16 and s6_addr32 definitions to __BSD_VISIBLE.
authorVenkatesh Srinivas <me@endeavour.zapto.org>
Thu, 9 Jun 2011 02:06:38 +0000 (19:06 -0700)
committerVenkatesh Srinivas <me@endeavour.zapto.org>
Thu, 9 Jun 2011 02:06:38 +0000 (19:06 -0700)
sys/netinet6/in6.h

index 7d2c644..da2a76d 100644 (file)
@@ -137,7 +137,7 @@ struct in6_addr {
 #define s6_addr                __u6_addr.__u6_addr8
 #define _s6_addr16     __u6_addr.__u6_addr16           /* internal use */
 #define _s6_addr32     __u6_addr.__u6_addr32           /* internal use */
-#ifdef _KERNEL                                         /* XXX nonstandard */
+#if __BSD_VISIBLE                                      /* XXX nonstandard */
 #define s6_addr8       __u6_addr.__u6_addr8
 #define s6_addr16      __u6_addr.__u6_addr16
 #define s6_addr32      __u6_addr.__u6_addr32