From: Brian West Date: Fri, 12 Mar 2010 17:25:46 +0000 (+0000) Subject: FSBUILD-260 X-Git-Tag: v1.0.6~178 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4fd5da2dc4c1143da790191f0c71e91d13c080c9;p=thirdparty%2Ffreeswitch.git FSBUILD-260 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16975 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_profile.c b/src/switch_profile.c index 7e4e9e532b..62d2e0162d 100644 --- a/src/switch_profile.c +++ b/src/switch_profile.c @@ -42,6 +42,8 @@ #include #include #include +#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)