Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Commit

Permalink
fix compilation on FreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
wfurt committed Nov 11, 2019
1 parent ad68763 commit 02748cc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/pal/src/misc/sysinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,12 @@ Revision History:

#if HAVE_SYSCONF
// <unistd.h> already included above
#elif HAVE_SYSCTL
#endif
#if HAVE_SYSCTL && not defined(__linux__)
// glibc is deprecating sysctl so we should not use it even if it exist.
#include <sys/sysctl.h>
#else
#endif
#if not HAVE_SYSCONF && not HAVE_SYSCTL
#error Either sysctl or sysconf is required for GetSystemInfo.
#endif

Expand Down

0 comments on commit 02748cc

Please sign in to comment.