From 1fcc0490fee617dd3c616b5b25f258ef67366dfd Mon Sep 17 00:00:00 2001 From: pierre Date: Mon, 10 Nov 2014 23:10:27 +0000 Subject: [PATCH] Also use PHTREAD_INHERIT_SCHED in pthread_attr_setinheritedsched for NetBSD system git-svn-id: trunk@29055 - --- rtl/unix/cthreads.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtl/unix/cthreads.pp b/rtl/unix/cthreads.pp index 1ed7dcad6e..925358edde 100644 --- a/rtl/unix/cthreads.pp +++ b/rtl/unix/cthreads.pp @@ -336,7 +336,7 @@ Type PINTRTLEvent = ^TINTRTLEvent; {$endif DEBUG_MT} pthread_attr_init(@thread_attr); {$if not defined(HAIKU) and not defined(ANDROID)} - {$ifdef solaris} + {$if defined (solaris) or defined (netbsd) } pthread_attr_setinheritsched(@thread_attr, PTHREAD_INHERIT_SCHED); {$else not solaris} pthread_attr_setinheritsched(@thread_attr, PTHREAD_EXPLICIT_SCHED);