From 06469a661074a60b23be28e0cb191274894ba7ee Mon Sep 17 00:00:00 2001 From: Jeff Lenk Date: Tue, 22 Mar 2011 13:48:19 -0500 Subject: [PATCH] fix windows build --- src/switch_core.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; }