mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
An attempt to detects getifaddrs availability properly
This commit is contained in:
parent
81616f84a3
commit
0fd1b65a78
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ void DNSResolveFree(addrinfo *res)
|
|||
|
||||
bool GetIPList(std::vector<std::string> &IP4s) {
|
||||
char ipstr[INET6_ADDRSTRLEN]; // We use IPv6 length since it's longer than IPv4
|
||||
#if defined(getifaddrs) // On Android: Requires __ANDROID_API__ >= 24
|
||||
#if (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3) || (__ANDROID_API__ >= 24) // getifaddrs first appeared in glibc 2.3, On Android officially supported since __ANDROID_API__ >= 24
|
||||
INFO_LOG(SCENET, "GetIPList from getifaddrs");
|
||||
struct ifaddrs* ifAddrStruct = NULL;
|
||||
struct ifaddrs* ifa = NULL;
|
||||
|
|
Loading…
Add table
Reference in a new issue