From: Jeff Lenk Date: Tue, 22 Mar 2011 18:48:19 +0000 (-0500) Subject: fix windows build X-Git-Tag: v1.2-rc1~162 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=06469a661074a60b23be28e0cb191274894ba7ee;p=thirdparty%2Ffreeswitch.git fix windows build --- diff --git a/src/switch_core.c b/src/switch_core.c index 87bea30777..30e33781d4 100644 --- a/src/switch_core.c +++ b/src/switch_core.c @@ -608,6 +608,9 @@ SWITCH_DECLARE(void) switch_core_set_globals(void) static int32_t set_priority(void) { +#ifdef WIN32 + SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_CLASS); +#else #ifdef USE_SCHED_SETSCHEDULER /* * Try to use a round-robin scheduler @@ -637,7 +640,7 @@ static int32_t set_priority(void) return -1; } #endif - +#endif return 0; }