1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/net/asterisk18/files/patch-main_lock.c
Guido Falsi e0793a4c19 - Repocopy asterisk16 to asterisk18 and update to new version 18.0.0
- Add conflicts and flavors for version 18 to asterisk modules I maintain.
2020-10-23 08:13:57 +00:00

13 lines
411 B
C

--- main/lock.c.orig 2020-07-09 15:39:17 UTC
+++ main/lock.c
@@ -689,9 +689,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);