From 787811d815fd270446ff97c8b93296035e118cfe Mon Sep 17 00:00:00 2001
From: Michiel van Baak <michiel@vanbaak.info>
Date: Sat, 21 Feb 2009 14:37:04 +0000
Subject: [PATCH] add extra check for sysinfo/sysctl

(closes issue #14513)
Reported by: snuffy
Patches:
      bug14513_fixsysinfo.diff uploaded by snuffy (license 35)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@177913 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 main/asterisk.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/main/asterisk.c b/main/asterisk.c
index d7808a6af1..2babdc91b9 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;
-- 
GitLab