summaryrefslogtreecommitdiff
path: root/net/asterisk22/files/patch-main_lock.c
diff options
context:
space:
mode:
authorOleksandr Kryvulia <o.kryvulia@flex-it.com.ua>2025-01-14 06:44:12 +0200
committerLi-Wen Hsu <lwhsu@FreeBSD.org>2025-01-19 01:42:50 +0800
commitd2de2e1ecfc00e3d271ef8a966654e7cf8f72e07 (patch)
tree2a0153f11505c10842cd9bc32d36f61b50923de5 /net/asterisk22/files/patch-main_lock.c
parentgames/endless-sky-high-dpi: update 0.10.4 → 0.10.10 (diff)
Add net/asterisk22: LTS version of Asterisk PBX software
PR: 284056 Sponsored by: FLEX-IT LLC
Diffstat (limited to 'net/asterisk22/files/patch-main_lock.c')
-rw-r--r--net/asterisk22/files/patch-main_lock.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/net/asterisk22/files/patch-main_lock.c b/net/asterisk22/files/patch-main_lock.c
new file mode 100644
index 000000000000..5292db43b5a1
--- /dev/null
+++ b/net/asterisk22/files/patch-main_lock.c
@@ -0,0 +1,12 @@
+--- main/lock.c.orig 2024-10-17 16:00:41 UTC
++++ main/lock.c
+@@ -718,9 +718,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);
+