Skip to content

Commit

Permalink
Fix FreeBSD native build (dotnet#31865)
Browse files Browse the repository at this point in the history
  • Loading branch information
am11 authored Feb 7, 2020
1 parent 6240a60 commit 1c9af5a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/coreclr/src/pal/src/misc/sysinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ Revision History:
#error Either sysctl or sysconf is required for GetSystemInfo.
#endif

#if HAVE_SYSCTLBYNAME
#include <sys/sysctl.h>
#endif

#if HAVE_SYSINFO
#include <sys/sysinfo.h>
#endif
Expand Down
2 changes: 0 additions & 2 deletions src/libraries/Native/Unix/System.Native/pal_networkchange.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,8 @@ void SystemNative_ReadEvents(int32_t sock, NetworkChangeEvent onNetworkChange)
case RTM_ADD:
case RTM_DELETE:
case RTM_REDIRECT:
{
onNetworkChange(sock, AvailabilityChanged);
return;
}
default:
break;
}
Expand Down

0 comments on commit 1c9af5a

Please sign in to comment.