build: avoid getifaddrs when unavailable

This commit is contained in:
Cory Fields
2018-07-19 14:21:05 -04:00
committed by Lawrence Nahum
parent 2070a545e2
commit 9256f7d13f
2 changed files with 5 additions and 1 deletions

View File

@@ -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)