1
0
mirror of https://github.com/coturn/coturn.git synced 2025-10-28 13:31:16 +01:00

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 <netinet/in.h>
```
This commit is contained in:
Camden Narzt 2020-12-09 16:15:40 -07:00
parent 08bb62ea88
commit 0880d7cd0f
No known key found for this signature in database
GPG Key ID: E349304DE45D816B

View File

@ -39,6 +39,10 @@
#include <sys/param.h>
#endif
#if defined(__APPLE__) || defined(__DARWIN__) || defined(__MACH__)
#define __APPLE_USE_RFC_3542
#endif
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>