d80f1f9d97
(they are all stubs before that). This stops wxGTK (and in turn, Audacity and others) from displaying annoying "Cannot get priority range for scheduling policy 0" message at startup: http://mail-index.netbsd.org/tech-pkg/2005/11/22/0020.html http://mail-index.netbsd.org/netbsd-users/2006/07/02/0004.html http://mail-index.netbsd.org/netbsd-users/2007/06/28/0002.html OK by wiz@.
18 lines
588 B
Text
18 lines
588 B
Text
$NetBSD: patch-ac,v 1.1 2009/01/08 21:58:17 shattered Exp $
|
|
|
|
--- src/unix/threadpsx.cpp.orig 2008-06-20 13:07:10.000000000 +0400
|
|
+++ src/unix/threadpsx.cpp
|
|
@@ -65,6 +65,13 @@
|
|
#define THR_ID(thr) ((long)(thr)->GetId())
|
|
#endif
|
|
|
|
+#ifdef __NetBSD__
|
|
+#include <sys/param.h>
|
|
+#if __NetBSD_Version__ < 499005000 && defined(HAVE_THREAD_PRIORITY_FUNCTIONS)
|
|
+#undef HAVE_THREAD_PRIORITY_FUNCTIONS
|
|
+#endif
|
|
+#endif
|
|
+
|
|
// ----------------------------------------------------------------------------
|
|
// constants
|
|
// ----------------------------------------------------------------------------
|