fix windows build

This commit is contained in:
Jeff Lenk 2011-03-22 13:48:19 -05:00
parent 5d7831348b
commit 06469a6610

View File

@ -608,6 +608,9 @@ SWITCH_DECLARE(void) switch_core_set_globals(void)
static int32_t set_priority(void) static int32_t set_priority(void)
{ {
#ifdef WIN32
SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_CLASS);
#else
#ifdef USE_SCHED_SETSCHEDULER #ifdef USE_SCHED_SETSCHEDULER
/* /*
* Try to use a round-robin scheduler * Try to use a round-robin scheduler
@ -637,7 +640,7 @@ static int32_t set_priority(void)
return -1; return -1;
} }
#endif #endif
#endif
return 0; return 0;
} }