mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-15 13:14:03 +00:00
FSBUILD-260
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16975 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
38b36e91af
commit
4fd5da2dc4
@ -42,6 +42,8 @@
|
|||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#elif defined (MACOSX) || defined (DARWIN)
|
||||||
|
/* Unsupported */
|
||||||
#else
|
#else
|
||||||
/*already defined
|
/*already defined
|
||||||
#define _WIN32_WINNT 0x0501 // To make GetSystemTimes visible in windows.h*/
|
#define _WIN32_WINNT 0x0501 // To make GetSystemTimes visible in windows.h*/
|
||||||
@ -71,6 +73,8 @@ struct profile_timer
|
|||||||
/* /proc/stat file descriptor used to retrieve the counters */
|
/* /proc/stat file descriptor used to retrieve the counters */
|
||||||
int procfd;
|
int procfd;
|
||||||
int initd;
|
int initd;
|
||||||
|
#elif defined (MACOSX) || defined (DARWIN)
|
||||||
|
/* Unsupported */
|
||||||
#else
|
#else
|
||||||
__int64 i64LastUserTime;
|
__int64 i64LastUserTime;
|
||||||
__int64 i64LastKernelTime;
|
__int64 i64LastKernelTime;
|
||||||
@ -195,6 +199,13 @@ SWITCH_DECLARE(int) switch_get_system_idle_time(switch_profile_timer_t *p, doubl
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#elif defined (MACOSX) || defined (DARWIN)
|
||||||
|
|
||||||
|
SWITCH_DECLARE(int) switch_get_system_idle_time(switch_profile_timer_t *p, double *idle_percentage)
|
||||||
|
{
|
||||||
|
return SWITCH_FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
SWITCH_DECLARE(int) switch_get_system_idle_time(switch_profile_timer_t *p, double *idle_percentage)
|
SWITCH_DECLARE(int) switch_get_system_idle_time(switch_profile_timer_t *p, double *idle_percentage)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user