From 501915f0a9312e7dcbb00f3bce28705e4b6030be Mon Sep 17 00:00:00 2001
From: Russell Bryant <russell@russellbryant.com>
Date: Mon, 19 Nov 2007 23:03:02 +0000
Subject: [PATCH] Make the SYSINFO documentation reflect which options were
 compiled in

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

diff --git a/funcs/func_sysinfo.c b/funcs/func_sysinfo.c
index d656b0cdfb..b386b9fb48 100644
--- a/funcs/func_sysinfo.c
+++ b/funcs/func_sysinfo.c
@@ -91,6 +91,7 @@ static struct ast_custom_function sysinfo_function = {
 "  Options:\n"
 "    loadavg   - system load average from past minute\n"
 "    numcalls  - number of active calls currently in progress\n"
+#if defined(HAVE_SYSINFO)
 "    uptime    - system uptime in hours\n"
 "    totalram  - total usable main memory size in KiB\n"
 "    freeram   - available memory size in KiB\n"
@@ -98,6 +99,7 @@ static struct ast_custom_function sysinfo_function = {
 "    totalswap - total swap space size in KiB\n"
 "    freeswap  - free swap space still available in KiB\n"
 "    numprocs  - number of current processes\n",
+#endif /* HAVE_SYSINFO */
 };
 
 static int unload_module(void)
-- 
GitLab