summaryrefslogtreecommitdiff
path: root/net/asterisk11/files/patch-main__lock.c
diff options
context:
space:
mode:
authorFlorian Smeets <flo@FreeBSD.org>2012-11-26 23:20:41 +0000
committerFlorian Smeets <flo@FreeBSD.org>2012-11-26 23:20:41 +0000
commit8d1ed531dafb86924486f0b2832509e8b3593939 (patch)
treeab8cec59d46a303db6f96244ace6f2dea4cb67eb /net/asterisk11/files/patch-main__lock.c
parent- Update to 2.2.2 (diff)
Add Asterisk 11 a new LTS version.
Tested by: wishmaster <artemrts@ukr.net> Feature safe: yes
Diffstat (limited to 'net/asterisk11/files/patch-main__lock.c')
-rw-r--r--net/asterisk11/files/patch-main__lock.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/net/asterisk11/files/patch-main__lock.c b/net/asterisk11/files/patch-main__lock.c
new file mode 100644
index 000000000000..a802d8817a1e
--- /dev/null
+++ b/net/asterisk11/files/patch-main__lock.c
@@ -0,0 +1,13 @@
+--- ./main/lock.c.orig 2010-11-06 15:00:15.000000000 +0100
++++ ./main/lock.c 2010-11-06 15:00:23.000000000 +0100
+@@ -679,10 +679,6 @@
+
+ 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);
+ return res;