diff options
Diffstat (limited to 'net/asterisk16/files/patch-main__lock.c')
-rw-r--r-- | net/asterisk16/files/patch-main__lock.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/net/asterisk16/files/patch-main__lock.c b/net/asterisk16/files/patch-main__lock.c new file mode 100644 index 000000000000..c1111fa8bbac --- /dev/null +++ b/net/asterisk16/files/patch-main__lock.c @@ -0,0 +1,12 @@ +--- main/lock.c.orig 2018-08-08 16:02:31 UTC ++++ main/lock.c +@@ -692,9 +692,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); + |