Merge pull request #649 from shawnchain/fix-osx-error-bg5hhp

Fix osx compile error
This commit is contained in:
Jonathan Naylor
2020-10-31 16:08:00 +00:00
committed by GitHub

View File

@@ -92,7 +92,7 @@ void CNetworkInfo::getNetworkInterface(unsigned char* info)
::fclose(fp);
#elif defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__APPLE__)
const int mib[] = {
int mib[] = {
CTL_NET,
PF_ROUTE,
0, // protocol