From 9f0462bca79159a405d91005fccb833b39258aa4 Mon Sep 17 00:00:00 2001 From: Max Khon Date: Sun, 28 Nov 2010 19:33:57 +0000 Subject: Add asterisk 1.8 port. Submitted by: Florian Smeets --- net/asterisk10/files/patch-main__lock.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 net/asterisk10/files/patch-main__lock.c (limited to 'net/asterisk10/files/patch-main__lock.c') diff --git a/net/asterisk10/files/patch-main__lock.c b/net/asterisk10/files/patch-main__lock.c new file mode 100644 index 000000000000..a802d8817a1e --- /dev/null +++ b/net/asterisk10/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; -- cgit v1.2.3