From 62a93c58fda12c4539bc2f5e0efbeca8ec8d530d Mon Sep 17 00:00:00 2001 From: Joseph Henry Date: Thu, 19 Jul 2018 17:50:10 -0700 Subject: [PATCH] Added ifdefs surrounding usage of getifaddrs() on Android --- osdep/Binder.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/osdep/Binder.hpp b/osdep/Binder.hpp index 93fad9f13..691e52816 100644 --- a/osdep/Binder.hpp +++ b/osdep/Binder.hpp @@ -293,7 +293,7 @@ public: #else const bool gotViaProc = false; #endif - +#if !defined(ZT_SDK) || !defined(__ANDROID__) // getifaddrs() freeifaddrs() not available on Android if (!gotViaProc) { struct ifaddrs *ifatbl = (struct ifaddrs *)0; struct ifaddrs *ifa; @@ -325,6 +325,7 @@ public: interfacesEnumerated = false; } } +#endif #endif } else {