1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/net/asterisk15/files/patch-main__lock.c
Guido Falsi 3218099f1b Add asterisk15 port, bringing branch 15 of the asterisk project.
Note that branch 15 is NOT a Long Term Support branch. Asterisk 15
will reach EOL before Asterisk 13.

Requested by:   "Herbert J. Skuhra" <herbert@gojira.at> (thanks for
		help testing)
2018-03-15 21:14:11 +00:00

13 lines
411 B
C

--- main/lock.c.orig 2017-12-20 20:39:39 UTC
+++ main/lock.c
@@ -710,9 +710,6 @@ int __ast_rwlock_init(int tracking, const char *filena
#endif /* DEBUG_THREADS */
pthread_rwlockattr_init(&attr);
-#ifdef HAVE_PTHREAD_RWLOCK_PREFER_WRITER_NP
- pthread_rwlockattr_setkind_np(&attr, PTHREAD_RWLOCK_PREFER_WRITER_NP);
-#endif
res = pthread_rwlock_init(&t->lock, &attr);
pthread_rwlockattr_destroy(&attr);