mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-03 12:25:35 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user