Skip to content

Commit

Permalink
Modify conditional to have Android API version check (#526)
Browse files Browse the repository at this point in the history
Co-authored-by: Cameron Miller <cameron.miller@homeaware.com>
  • Loading branch information
camm73 and camm73 authored Feb 20, 2024
1 parent 64da67c commit 00619e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/network_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ NetworkInterface::Info NetworkInterface::info() const {
}

#else // _WIN32
#ifndef ANDROID
#if !defined(ANDROID) || (defined(__ANDROID_API__) && __ANDROID_API__ >= 24)
struct ifaddrs* ifaddrs = 0;
struct ifaddrs* if_it = 0;
getifaddrs(&ifaddrs);
Expand Down
2 changes: 1 addition & 1 deletion src/utils/routing_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ set<string> network_interfaces() {
}
#else
set<string> network_interfaces() {
#ifndef ANDROID
#if !defined(ANDROID) || (defined(__ANDROID_API__) && __ANDROID_API__ >= 24)
set<string> output;
struct ifaddrs* ifaddrs = 0;
struct ifaddrs* if_it = 0;
Expand Down

0 comments on commit 00619e0

Please sign in to comment.