diff options
author | Dwayne M. Hubbard <dwayne.hubbard@gmail.com> | 2007-04-11 21:13:44 +0000 |
---|---|---|
committer | Dwayne M. Hubbard <dwayne.hubbard@gmail.com> | 2007-04-11 21:13:44 +0000 |
commit | 2151e532fe8ba8e14844de54a47a5eb5ad13e2a6 (patch) | |
tree | 5988bccc4d26966e132b33f82dfd9dc3874468d3 /main/pbx.c | |
parent | 6a5f3599bb7a75c00e82e831501d7e001e1f30a0 (diff) |
changed #if HAVE_SYSINFO to #if defined(HAVE_SYSINFO)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@61576 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/pbx.c')
-rw-r--r-- | main/pbx.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main/pbx.c b/main/pbx.c index c90df8338..e916411ff 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -37,7 +37,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #include <time.h> #include <sys/time.h> #include <limits.h> -#if HAVE_SYSINFO +#if defined(HAVE_SYSINFO) #include <sys/sysinfo.h> #endif @@ -2455,7 +2455,7 @@ static int increase_call_count(const struct ast_channel *c) { int failed = 0; double curloadavg; -#if HAVE_SYSINFO +#if defined(HAVE_SYSINFO) long curfreemem; struct sysinfo sys_info; #endif @@ -2474,7 +2474,7 @@ static int increase_call_count(const struct ast_channel *c) failed = -1; } } -#if HAVE_SYSINFO +#if defined(HAVE_SYSINFO) if (option_minmemfree) { if (!sysinfo(&sys_info)) { /* make sure that the free system memory is above the configured low watermark |