summaryrefslogtreecommitdiff
path: root/x11/wxGTK24/patches/patch-aj
blob: 0afe81f5ffe8fdb7449a1b9c926a6a0f16ccfdb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$NetBSD: patch-aj,v 1.1 2009/01/08 21:58:17 shattered Exp $

Thread priority functions were stubs until 4.99.50.

--- src/unix/threadpsx.cpp.orig	2003-09-21 15:31:40.000000000 +0400
+++ src/unix/threadpsx.cpp
@@ -58,6 +58,13 @@
     #include <sys/resource.h>
 #endif
 
+#ifdef __NetBSD__
+#include <sys/param.h>
+#if __NetBSD_Version__ < 499005000 && defined(HAVE_THREAD_PRIORITY_FUNCTIONS)
+#undef HAVE_THREAD_PRIORITY_FUNCTIONS
+#endif
+#endif
+
 // ----------------------------------------------------------------------------
 // constants
 // ----------------------------------------------------------------------------