diff options
author | Kyle J. McKay <mackyle@gmail.com> | 2015-03-07 23:14:36 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-03-10 15:13:25 -0700 |
commit | 9529080de253b89474402f323e10470656764b3a (patch) | |
tree | 7154b4495465156ceab9d7595d03492e0a8a3d50 /git-compat-util.h | |
parent | 9874fca7122563e28d699a911404fc49d2a24f1c (diff) | |
download | git-9529080de253b89474402f323e10470656764b3a.tar.gz |
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 <mackyle@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-compat-util.h')
-rw-r--r-- | git-compat-util.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 <poll.h> #endif +#ifdef HAVE_BSD_SYSCTL +#include <sys/sysctl.h> +#endif #if defined(__MINGW32__) /* pull in Windows compatibility stuff */ |