summaryrefslogtreecommitdiff
path: root/devel/linuxthreads/files/libc_thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'devel/linuxthreads/files/libc_thread.c')
-rw-r--r--devel/linuxthreads/files/libc_thread.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/devel/linuxthreads/files/libc_thread.c b/devel/linuxthreads/files/libc_thread.c
index ada205fd2858..86db711d9995 100644
--- a/devel/linuxthreads/files/libc_thread.c
+++ b/devel/linuxthreads/files/libc_thread.c
@@ -82,6 +82,7 @@ static void _pthread_initialize(void)
{
#if defined(LINUXTHREADS)
+#if !defined(LINUXTHREADS_NO_POSIX_PRIORITY_SCHEDULING)
int mib[2];
size_t len;
@@ -91,6 +92,7 @@ static void _pthread_initialize(void)
if (-1 == sysctl (mib, 2, &_posix_priority_scheduling, &len, NULL, 0))
_posix_priority_scheduling = 0;
#endif
+#endif
/* This turns on thread safe behaviour in libc when we link with it */
__isthreaded = 1;