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
This commit is contained in:
Dwayne M. Hubbard
2007-04-11 21:13:44 +00:00
parent 6a5f3599bb
commit 2151e532fe
3 changed files with 11 additions and 11 deletions

View File

@@ -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