$OpenBSD: patch-encodedv_dvconnect_c,v 1.3 2012/03/30 06:09:54 ajacoutot Exp $
--- encodedv/dvconnect.c.orig	Sat Mar 24 10:10:08 2012
+++ encodedv/dvconnect.c	Sat Mar 24 10:13:34 2012
@@ -857,7 +857,7 @@ int send_raw(const char*const* filenames, int channel,
 
 int rt_raisepri (int pri)
 {
-#ifdef _SC_PRIORITY_SCHEDULING
+#if defined(_POSIX_PRIORITY_SCHEDULING) && (_POSIX_PRIORITY_SCHEDULING > 0)
 	struct sched_param scp;
 
 	/*
