Author: biurrun Date: Thu Nov 19 18:13:47 2009 New Revision: 1729 Log: Add a workaround for different struct in6_addr member names on Linux/glibc and Mac OS X. While this is not overly pretty, it fixes compilation on OS X. Modified: trunk/libpisa/util.c Modified: trunk/libpisa/util.c ============================================================================== --- trunk/libpisa/util.c Thu Nov 19 16:37:36 2009 (r1728) +++ trunk/libpisa/util.c Thu Nov 19 18:13:47 2009 (r1729) @@ -276,6 +276,12 @@ if (err) goto out_err; +/* FIXME: This is an ugly hack to map between different struct in6_addr + * member names on Linux/glibc and Mac OS X. */ +#ifndef s6_addr32 +#define s6_addr32 __u6_addr.__u6_addr32 +#endif + #define IPV4_TO_IPV6_MAP(in_addr_from, in6_addr_to) \ {(in6_addr_to)->s6_addr32[0] = 0; \ (in6_addr_to)->s6_addr32[1] = 0; \