--- cdda2wav/cdda2wav.c.orig
+++ cdda2wav/cdda2wav.c
@@ -958,7 +958,7 @@
 	dontneedroot();
 }
 #else
-#if      defined _POSIX_PRIORITY_SCHEDULING
+#if      defined _POSIX_PRIORITY_SCHEDULING && (_POSIX_PRIORITY_SCHEDULING -0 > 0)
 #include <sched.h>
 
 static void

