mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-05 03:53:44 +02:00
Added ifdefs surrounding usage of getifaddrs() on Android
This commit is contained in:
parent
f94aea8119
commit
62a93c58fd
1 changed files with 2 additions and 1 deletions
|
@ -293,7 +293,7 @@ public:
|
||||||
#else
|
#else
|
||||||
const bool gotViaProc = false;
|
const bool gotViaProc = false;
|
||||||
#endif
|
#endif
|
||||||
|
#if !defined(ZT_SDK) || !defined(__ANDROID__) // getifaddrs() freeifaddrs() not available on Android
|
||||||
if (!gotViaProc) {
|
if (!gotViaProc) {
|
||||||
struct ifaddrs *ifatbl = (struct ifaddrs *)0;
|
struct ifaddrs *ifatbl = (struct ifaddrs *)0;
|
||||||
struct ifaddrs *ifa;
|
struct ifaddrs *ifa;
|
||||||
|
@ -325,6 +325,7 @@ public:
|
||||||
interfacesEnumerated = false;
|
interfacesEnumerated = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue