From 0880d7cd0fe9641d65f42100d6012f46c3878759 Mon Sep 17 00:00:00 2001 From: Camden Narzt Date: Wed, 9 Dec 2020 16:15:40 -0700 Subject: [PATCH] fix compilation on macOS Big Sur You must define `__APPLE_USE_RFC_3542` in order to use the `IPV6_DONTFRAG` sockopt: https://opensource.apple.com/source/xnu/xnu-6153.141.1/bsd/netinet6/in6.h.auto.html ``` * To use the new IPv6 Sockets options introduced by RFC 3542 * the constant __APPLE_USE_RFC_3542 must be defined before * including ``` --- src/ns_turn_defs.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ns_turn_defs.h b/src/ns_turn_defs.h index 336e0485..461ceccd 100644 --- a/src/ns_turn_defs.h +++ b/src/ns_turn_defs.h @@ -39,6 +39,10 @@ #include #endif +#if defined(__APPLE__) || defined(__DARWIN__) || defined(__MACH__) +#define __APPLE_USE_RFC_3542 +#endif + #include #include #include