$OpenBSD: patch-encodedv_dvconnect_c,v 1.1.1.1 2004/06/26 18:00:27 sturm Exp $
--- encodedv/dvconnect.c.orig	2004-01-16 07:38:21.000000000 -0800
+++ encodedv/dvconnect.c	2004-05-01 16:59:58.000000000 -0700
@@ -31,6 +31,7 @@
 
 #include <stdio.h>
 #include <sys/ioctl.h>
+#include <sys/types.h>
 #include <sys/mman.h>
 #include <sys/time.h>
 #include <unistd.h>
@@ -854,6 +855,12 @@ int rt_raisepri (int pri)
 	/*
 	 * Verify that scheduling is available
 	 */
+
+#if defined(__OpenBSD__)
+		fprintf (stderr, "WARNING: RR-scheduler not available, "
+			 "disabling.\n");
+		return (-1);
+#else
 	if (sysconf (_SC_PRIORITY_SCHEDULING) == -1) {
 		fprintf (stderr, "WARNING: RR-scheduler not available, "
 			 "disabling.\n");
@@ -868,6 +875,7 @@ int rt_raisepri (int pri)
 	}
 #endif
 	return (0);
+#endif
 }
 
 /* ------------------------------------------------------------------------
