summaryrefslogtreecommitdiff
path: root/net/asterisk13/files/patch-main__utils.c
blob: 34e490223c4c231e794cbfd623d7237a31e5ed79 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- main/utils.c.orig	2014-09-18 19:22:39 UTC
+++ main/utils.c
@@ -1220,8 +1220,8 @@ int ast_pthread_create_stack(pthread_t *
 		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.