From 9529080de253b89474402f323e10470656764b3a Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Sat, 7 Mar 2015 23:14:36 -0800 Subject: configure: support HAVE_BSD_SYSCTL option On BSD-compatible systems some information such as the number of available CPUs may only be available via the sysctl function. Add support for a HAVE_BSD_SYSCTL option complete with autoconf support and include the sys/syctl.h header when the option is enabled to make the sysctl function available. Signed-off-by: Kyle J. McKay Signed-off-by: Junio C Hamano --- git-compat-util.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'git-compat-util.h') diff --git a/git-compat-util.h b/git-compat-util.h index eb9b0ff328..4ead8c8fdd 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -127,6 +127,9 @@ #else #include #endif +#ifdef HAVE_BSD_SYSCTL +#include +#endif #if defined(__MINGW32__) /* pull in Windows compatibility stuff */ -- cgit v1.2.1