openbsd-ports/telephony/asterisk/patches/patch-main_features_c
2012-09-15 12:43:49 +00:00

14 lines
473 B
Plaintext

$OpenBSD: patch-main_features_c,v 1.6 2012/09/15 12:43:49 sthen Exp $
--- main/features.c.orig Tue Sep 11 17:15:05 2012
+++ main/features.c Wed Sep 12 14:36:19 2012
@@ -1045,7 +1045,9 @@ static void bridge_call_thread_launch(struct ast_bridg
}
pthread_attr_destroy(&attr);
memset(&sched, 0, sizeof(sched));
+#if defined(_POSIX_THREAD_PRIORITY_SCHEDULING) && (_POSIX_THREAD_PRIORITY_SCHEDULING > 0)
pthread_setschedparam(thread, SCHED_RR, &sched);
+#endif
}
/*!