freebsd-ports/net/asterisk16/files/patch-main::utils.c
Maxim Sobolev 38e1f1309a Add asterisk16 after repo-copy from net/asterisk. Some functions (e.g.
DAHDI support) are still missed and will be added on later date.
2009-02-14 21:17:22 +00:00

16 lines
499 B
C

$FreeBSD$
--- main/utils.c
+++ main/utils.c
@@ -936,8 +936,8 @@
pthread_attr_init(attr);
}
-#ifdef __linux__
- /* On Linux, pthread_attr_init() defaults to PTHREAD_EXPLICIT_SCHED,
+#if defined(__linux__) || defined(__FreeBSD__)
+ /* On Linux and FreeBSD, pthread_attr_init() defaults to PTHREAD_EXPLICIT_SCHED,
which is kind of useless. Change this here to
PTHREAD_INHERIT_SCHED; that way the -p option to set realtime
priority will propagate down to new threads by default.