diff options
author | Joseph Henry <josephjah@gmail.com> | 2018-07-19 17:50:10 -0700 |
---|---|---|
committer | Joseph Henry <josephjah@gmail.com> | 2018-07-19 17:50:10 -0700 |
commit | 62a93c58fda12c4539bc2f5e0efbeca8ec8d530d (patch) | |
tree | 02c045e41cc9ff3fcaed1058bd76130c245f88d0 /osdep | |
parent | f94aea8119bdf5b894c4d9a29e678c3c3594b490 (diff) | |
download | infinitytier-62a93c58fda12c4539bc2f5e0efbeca8ec8d530d.tar.gz infinitytier-62a93c58fda12c4539bc2f5e0efbeca8ec8d530d.zip |
Added ifdefs surrounding usage of getifaddrs() on Android
Diffstat (limited to 'osdep')
-rw-r--r-- | osdep/Binder.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/osdep/Binder.hpp b/osdep/Binder.hpp index 93fad9f1..691e5281 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 { |