summaryrefslogtreecommitdiff
path: root/net/asterisk-bristuff/files/patch-main::utils.c
blob: e2c43ab89109763196a4d0df0e7a559dcdef5bc3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$FreeBSD: /tmp/pcvs/ports/net/asterisk-bristuff/files/Attic/patch-main::utils.c,v 1.1 2009-09-16 19:33:37 fjoe Exp $

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