mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 23:18:14 +01:00
build: avoid getifaddrs when unavailable
This commit is contained in:
committed by
Lawrence Nahum
parent
2070a545e2
commit
9256f7d13f
@@ -2167,7 +2167,7 @@ void Discover()
|
||||
}
|
||||
}
|
||||
}
|
||||
#else
|
||||
#elif (HAVE_DECL_GETIFADDRS && HAVE_DECL_FREEIFADDRS)
|
||||
// Get local host ip
|
||||
struct ifaddrs* myaddrs;
|
||||
if (getifaddrs(&myaddrs) == 0)
|
||||
|
||||
Reference in New Issue
Block a user