summaryrefslogtreecommitdiff
path: root/net/asterisk14/files/patch-main::utils.c
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2011-11-07 23:38:48 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2011-11-07 23:38:48 +0000
commit2b05847ed94e390cdfe7c15313ab7b623a1b0cf0 (patch)
treedc72111eb39db03a5eb54f7313444d5e1b4ca2a4 /net/asterisk14/files/patch-main::utils.c
parent- Honor custom PREFIX [1] (diff)
Ressurect asterisk14 and upgrade to the latest 1.4.42, which should be
free of any known vulnerabilities.
Notes
Notes: svn path=/head/; revision=285269
Diffstat (limited to '')
-rw-r--r--net/asterisk14/files/patch-main::utils.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/net/asterisk14/files/patch-main::utils.c b/net/asterisk14/files/patch-main::utils.c
new file mode 100644
index 000000000000..7f2f1495d714
--- /dev/null
+++ b/net/asterisk14/files/patch-main::utils.c
@@ -0,0 +1,16 @@
+
+$FreeBSD$
+
+--- main/utils.c.orig
++++ main/utils.c
+@@ -914,8 +914,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.