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
commit 424407cb82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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