aboutsummaryrefslogtreecommitdiffstats
path: root/main/asterisk.c
diff options
context:
space:
mode:
authormvanbaak <mvanbaak@f38db490-d61c-443f-a65b-d21fe96a405b>2009-02-21 14:37:04 +0000
committermvanbaak <mvanbaak@f38db490-d61c-443f-a65b-d21fe96a405b>2009-02-21 14:37:04 +0000
commit1de0e3bb9511b58b53cc4cd5d8187d7559f276ef (patch)
tree2d961655c26ca87ee787b2952eacaf20df4e2461 /main/asterisk.c
parentfd686d9901328b6bc5cac0f75d8ecedd7e7176e1 (diff)
add extra check for sysinfo/sysctl
(closes issue #14513) Reported by: snuffy Patches: bug14513_fixsysinfo.diff uploaded by snuffy (license 35) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@177913 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/asterisk.c')
-rw-r--r--main/asterisk.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/asterisk.c b/main/asterisk.c
index d7808a6af..2babdc91b 100644
--- a/main/asterisk.c
+++ b/main/asterisk.c
@@ -554,6 +554,7 @@ static int swapmode(int *used, int *total)
}
#endif
+#if defined(HAVE_SYSINFO) || defined(HAVE_SYSCTL)
/*! \brief Give an overview of system statistics */
static char *handle_show_sysinfo(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
{
@@ -647,6 +648,7 @@ static char *handle_show_sysinfo(struct ast_cli_entry *e, int cmd, struct ast_cl
ast_cli(a->fd, " Number of Processes: %d \n\n", nprocs);
return CLI_SUCCESS;
}
+#endif
struct profile_entry {
const char *name;