From 3a7ac03b39902efedd3c04d86b93b63569cb3f14 Mon Sep 17 00:00:00 2001 From: travis laduke Date: Fri, 24 Mar 2023 11:59:22 -0700 Subject: [PATCH] Change if_def again so ios can build All apple's variables are "defined" but sometimes they are defined as "0" --- osdep/Binder.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osdep/Binder.hpp b/osdep/Binder.hpp index 41046e867..0505c5439 100644 --- a/osdep/Binder.hpp +++ b/osdep/Binder.hpp @@ -42,7 +42,7 @@ #if (defined(__unix__) || defined(__APPLE__)) && !defined(__LINUX__) && !defined(ZT_SDK) #include -#if defined(TARGET_OS_OSX) +#if TARGET_OS_OSX #include #endif #include @@ -333,7 +333,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) && defined(TARGET_OS_OSX) +#if (defined(__unix__) || defined(__APPLE__)) && !defined(__LINUX__) && !defined(ZT_SDK) && TARGET_OS_OSX // 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;