FSBUILD-260

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16975 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West 2010-03-12 17:25:46 +00:00
parent 38b36e91af
commit 4fd5da2dc4
1 changed files with 11 additions and 0 deletions

View File

@ -42,6 +42,8 @@
#include <sys/types.h>
#include <fcntl.h>
#include <errno.h>
#elif defined (MACOSX) || defined (DARWIN)
/* Unsupported */
#else
/*already defined
#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 */
int procfd;
int initd;
#elif defined (MACOSX) || defined (DARWIN)
/* Unsupported */
#else
__int64 i64LastUserTime;
__int64 i64LastKernelTime;
@ -195,6 +199,13 @@ SWITCH_DECLARE(int) switch_get_system_idle_time(switch_profile_timer_t *p, doubl
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
SWITCH_DECLARE(int) switch_get_system_idle_time(switch_profile_timer_t *p, double *idle_percentage)