From a13da4e93eac1021278e8195c64d9501d7c2d0ef Mon Sep 17 00:00:00 2001 From: Fritz Elfert Date: Sat, 18 Jun 2011 01:10:57 +0200 Subject: Disable check for pthreads on win32 And do not use sched_get_priority on mingw with win32 pthreads installed --- src/daemon/daemon-conf.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/daemon/daemon-conf.c b/src/daemon/daemon-conf.c index 633c3154..67b772ae 100644 --- a/src/daemon/daemon-conf.c +++ b/src/daemon/daemon-conf.c @@ -478,11 +478,13 @@ static int parse_rtprio(const char *filename, unsigned line, const char *section pa_assert(rvalue); pa_assert(data); -#ifdef HAVE_SCHED_H +#ifndef OS_IS_WIN32 +# ifdef HAVE_SCHED_H if (pa_atoi(rvalue, &rtprio) < 0 || rtprio < sched_get_priority_min(SCHED_FIFO) || rtprio > sched_get_priority_max(SCHED_FIFO)) { pa_log("[%s:%u] Invalid realtime priority '%s'.", filename, line, rvalue); return -1; } +# endif #endif c->realtime_priority = (int) rtprio; -- cgit