[pulseaudio-discuss] [PATCH 2/2] - Do not use sched_get_priority... on mingw with win32 pthreads installed

Fritz Elfert fritz at fritz-elfert.de
Fri Jun 17 14:31:31 PDT 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

- ---
 src/daemon/daemon-conf.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/daemon/daemon-conf.c b/src/daemon/daemon-conf.c
index 633c315..67b772a 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;
- -- 
1.7.5.4

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAk37x7MACgkQboM4mAMyprCgzgCgqLeQN/qEF/1flg+A60iDzcXD
WhEAoIk4oX418l51HNPwn7SahekDuhj+
=+l5X
-----END PGP SIGNATURE-----


More information about the pulseaudio-discuss mailing list