1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-06 06:30:19 +00:00
freebsd-ports/net/asterisk10/files/patch-main::utils.c
Maxim Sobolev 96b184e9dc Make patch sutrable for integration with vendor by putting back
#ifdef that we have had no business of removing in the first place.
Don't bump PORTREVISION since it makes no difference for the compiled
package.
2008-10-20 17:26:22 +00:00

17 lines
504 B
C

$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.