From fc9ef629ac8733c4f0b844356782cca80ae09c4b Mon Sep 17 00:00:00 2001
From: Vadim Zeitlin <vadim@wxwidgets.org>
Date: Fri, 12 Mar 1999 19:35:30 +0000
Subject: [PATCH] another (last?) FreeBSD thread compilation fix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1915 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---
 src/unix/threadpsx.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/unix/threadpsx.cpp b/src/unix/threadpsx.cpp
index 0b513b2ef1..5c3382cdc7 100644
--- a/src/unix/threadpsx.cpp
+++ b/src/unix/threadpsx.cpp
@@ -448,13 +448,13 @@ wxThreadError wxThread::Create()
     pthread_attr_t attr;
     pthread_attr_init(&attr);
 
+#ifdef HAVE_THREAD_PRIORITY_FUNCTIONS
     int prio;
     if ( pthread_attr_getschedpolicy(&attr, &prio) != 0 )
     {
         wxLogError(_("Can not retrieve thread scheduling policy."));
     }
 
-#ifdef HAVE_THREAD_PRIORITY_FUNCTIONS
     int min_prio = sched_get_priority_min(prio),
         max_prio = sched_get_priority_max(prio);
 
-- 
2.47.2