ports/net/asterisk10/files/patch-main::utils.c
Florian Smeets b003ca6d34 - Don't force gcc, make this work with clang, too [1]
- Don't call gmake directly [1]
- Make the -p (Run as pseudo-realtime thread) work on FreeBSD [1]
- Use @dirrmtry for directories that can contain files after deinstall

Submitted by:	tijl [1]
2013-07-04 22:46:33 +00:00

13 lines
568 B
C

--- ./main/utils.c.orig 2010-08-06 20:57:10.000000000 +0200
+++ ./main/utils.c 2010-11-06 14:54:37.000000000 +0100
@@ -990,8 +990,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.