From bc5b5b9e711d6c5289ca894eb5e537316bf5f844 Mon Sep 17 00:00:00 2001 From: Sara Golemon Date: Thu, 14 Aug 2014 21:53:49 -0700 Subject: [PATCH] Add missing s6_addr16 define for MacOSX targets Summary: This is a known issue on Darwin @override-unit-failures Test Plan: folly/detail/IPAddress.h compiles on a mac Reviewed By: joelm@fb.com FB internal diff: D1499795 --- folly/detail/IPAddress.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/folly/detail/IPAddress.h b/folly/detail/IPAddress.h index 65b42afa..18d53a64 100644 --- a/folly/detail/IPAddress.h +++ b/folly/detail/IPAddress.h @@ -45,6 +45,10 @@ extern "C" { #include #include +#if defined(__APPLE__) && !defined(s6_addr16) +# define s6_addr16 __u6_addr.__u6_addr16 +#endif + namespace folly { namespace detail { inline std::string familyNameStr(sa_family_t family) { -- 2.34.1