mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Solaris does not have a sysinfo like we know of on Linux.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@77876 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 defined(HAVE_SYSINFO)
|
||||
#if defined(HAVE_SYSINFO) && !defined(SOLARIS)
|
||||
#include <sys/sysinfo.h>
|
||||
#endif
|
||||
|
||||
@@ -2536,7 +2536,7 @@ static int increase_call_count(const struct ast_channel *c)
|
||||
{
|
||||
int failed = 0;
|
||||
double curloadavg;
|
||||
#if defined(HAVE_SYSINFO)
|
||||
#if defined(HAVE_SYSINFO) && !defined(SOLARIS)
|
||||
long curfreemem;
|
||||
struct sysinfo sys_info;
|
||||
#endif
|
||||
@@ -2555,7 +2555,7 @@ static int increase_call_count(const struct ast_channel *c)
|
||||
failed = -1;
|
||||
}
|
||||
}
|
||||
#if defined(HAVE_SYSINFO)
|
||||
#if defined(HAVE_SYSINFO) && !defined(SOLARIS)
|
||||
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