$OpenBSD: patch-src_Unix_main_unix_cpp,v 1.2 2010/03/25 08:10:56 jasper Exp $
--- src/Unix/main_unix.cpp.orig	Thu Mar 25 08:55:21 2010
+++ src/Unix/main_unix.cpp	Thu Mar 25 08:56:01 2010
@@ -981,6 +981,9 @@ static void sigint_handler(...)
 void Set_pthread_attr(pthread_attr_t *attr, int priority)
 {
 	pthread_attr_init(attr);
+#ifdef __OpenBSD__
+#undef _POSIX_THREAD_PRIORITY_SCHEDULING
+#endif
 #if defined(_POSIX_THREAD_PRIORITY_SCHEDULING)
 	// Some of these only work for superuser
 	if (geteuid() == 0) {
