projects
/
folly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a22e272
)
Add missing s6_addr16 define for MacOSX targets
author
Sara Golemon
<sgolemon@fb.com>
Fri, 15 Aug 2014 04:53:49 +0000
(21:53 -0700)
committer
Sara Golemon
<sgolemon@fb.com>
Fri, 15 Aug 2014 05:38:01 +0000
(22:38 -0700)
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
patch
|
blob
|
history
diff --git
a/folly/detail/IPAddress.h
b/folly/detail/IPAddress.h
index 65b42afa6d48ddc02f55610d49f47b510acf8c14..18d53a646f5ac14ff13385cda9afb7f1793ae6bd 100644
(file)
--- a/
folly/detail/IPAddress.h
+++ b/
folly/detail/IPAddress.h
@@
-45,6
+45,10
@@
extern "C" {
#include <folly/Conv.h>
#include <folly/Format.h>
+#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) {