Import of pkgsrc-2016Q3

This commit is contained in:
2016-10-14 07:49:11 +02:00
committed by Lionel Sambuc
parent 9d819b6d54
commit 1242aa1e36
35952 changed files with 949749 additions and 377083 deletions

View File

@@ -0,0 +1,15 @@
$NetBSD: patch-src_thread.cpp,v 1.1 2016/04/03 00:01:30 kamil Exp $
--- src/thread.cpp.orig 2015-11-04 08:55:13.000000000 +0000
+++ src/thread.cpp
@@ -131,6 +131,10 @@ void zmq::thread_t::setSchedulingParamet
policy = schedulingPolicy_;
}
+#ifdef __NetBSD__
+ if(policy == SCHED_OTHER) param.sched_priority = -1;
+#endif
+
rc = pthread_setschedparam(descriptor, policy, &param);
posix_assert (rc);
#endif