summaryrefslogtreecommitdiff
path: root/osdep
diff options
context:
space:
mode:
authorGrant Limberg <[email protected]>2022-11-10 11:35:34 -0800
committerGrant Limberg <[email protected]>2022-11-10 11:35:34 -0800
commit9568a4f2b4bce03db072fc2d0cc92f431b2587ac (patch)
tree60da256853b463afce868a8693e1ab9c12c78afd /osdep
parentb41e0910b0fb0b0dcc0c398313ce7697964b695e (diff)
netinet6/in6_var.h not available in iOS
Diffstat (limited to 'osdep')
-rw-r--r--osdep/Binder.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/osdep/Binder.hpp b/osdep/Binder.hpp
index 3236d30b..4e08f453 100644
--- a/osdep/Binder.hpp
+++ b/osdep/Binder.hpp
@@ -42,7 +42,9 @@
#if (defined(__unix__) || defined(__APPLE__)) && !defined(__LINUX__) && !defined(ZT_SDK)
#include <net/if.h>
+#if ! defined(TARGET_OS_IOS)
#include <netinet6/in6_var.h>
+#endif
#include <sys/ioctl.h>
#endif
@@ -324,7 +326,7 @@ class Binder {
while (ifa) {
if ((ifa->ifa_name) && (ifa->ifa_addr)) {
InetAddress ip = *(ifa->ifa_addr);
-#if (defined(__unix__) || defined(__APPLE__)) && !defined(__LINUX__) && !defined(ZT_SDK)
+#if (defined(__unix__) || defined(__APPLE__)) && !defined(__LINUX__) && !defined(ZT_SDK) && !defined(TARGET_OS_IOS)
// Check if the address is an IPv6 Temporary Address, macOS/BSD version
if (ifa->ifa_addr->sa_family == AF_INET6) {
struct sockaddr_in6* sa6 = (struct sockaddr_in6*)ifa->ifa_addr;