We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64da67c commit 00619e0Copy full SHA for 00619e0
src/network_interface.cpp
@@ -331,7 +331,7 @@ NetworkInterface::Info NetworkInterface::info() const {
331
}
332
333
#else // _WIN32
334
- #ifndef ANDROID
+ #if !defined(ANDROID) || (defined(__ANDROID_API__) && __ANDROID_API__ >= 24)
335
struct ifaddrs* ifaddrs = 0;
336
struct ifaddrs* if_it = 0;
337
getifaddrs(&ifaddrs);
src/utils/routing_utils.cpp
@@ -413,7 +413,7 @@ set<string> network_interfaces() {
413
414
#else
415
set<string> network_interfaces() {
416
417
set<string> output;
418
419
0 commit comments