1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-25 11:41:35 +01:00

android workaround (#471)

This commit is contained in:
Lattice 0
2022-04-24 12:44:52 -03:00
committed by GitHub
parent 7204fbd688
commit 2601493752
2 changed files with 18 additions and 12 deletions

View File

@@ -331,7 +331,7 @@ NetworkInterface::Info NetworkInterface::info() const {
}
#else // _WIN32
#ifndef ANDROID
struct ifaddrs* ifaddrs = 0;
struct ifaddrs* if_it = 0;
getifaddrs(&ifaddrs);
@@ -341,7 +341,9 @@ NetworkInterface::Info NetworkInterface::info() const {
if (ifaddrs) {
freeifaddrs(ifaddrs);
}
#else
throw new std::runtime_error("android ifaddr not supported");
#endif
#endif // _WIN32
// If we didn't even get the hw address or ip address, this went wrong