aboutsummaryrefslogtreecommitdiff
path: root/net/asterisk11/files/patch-main__lock.c
diff options
context:
space:
mode:
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;