blob: 375e4b0d5fb1e16936b29c9ad0eb635b72435f3f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
$NetBSD: patch-cd,v 1.1 2005/11/04 22:20:37 dbj Exp $
--- cdda2wav/cdda2wav.c.orig 2004-08-24 11:06:14.000000000 -0400
+++ cdda2wav/cdda2wav.c
@@ -970,7 +970,7 @@ prio_done:
dontneedroot();
}
#else
-#if defined _POSIX_PRIORITY_SCHEDULING
+#if defined _POSIX_PRIORITY_SCHEDULING && (_POSIX_PRIORITY_SCHEDULING != -1)
#include <sched.h>
static void
@@ -2616,7 +2616,7 @@ Rate Divider Rate Divider
if ( global.verbose != 0 ) {
fputs( "#Cdda2wav version ", stderr );
fputs( VERSION, stderr );
-#if defined _POSIX_PRIORITY_SCHEDULING || defined HAVE_SYS_PRIOCNTL_H
+#if (defined _POSIX_PRIORITY_SCHEDULING && (_POSIX_PRIORITY_SCHEDULING != -1)) || defined HAVE_SYS_PRIOCNTL_H
fputs( ", real time sched.", stderr );
#endif
#if defined ECHO_TO_SOUNDCARD
|