freebsd-ports/net/asterisk10/files/patch-main__lock.c
Max Khon 9f0462bca7 Add asterisk 1.8 port.
Submitted by:	Florian Smeets
2010-11-28 19:33:57 +00:00

13 lines
397 B
C

--- ./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;