ports/net-im/libjingle/files/patch-talk__base__criticalsection.h
Mario Sergio Fujikawa Ferreira 705d98389a o Additional patching obtained from the effort of porting net-im/kopete with
libjingle support.
o Update libjingle's third party mediaphone (obtained from latest
  release of net/linphone 1.3.5) library
o Force OSS sound system detection
o Bump PORTREVISION
2006-04-21 15:17:45 +00:00

13 lines
506 B
C++

--- ./talk/base/criticalsection.h.orig Thu Mar 16 18:43:02 2006
+++ ./talk/base/criticalsection.h Fri Apr 21 10:56:34 2006
@@ -83,8 +83,10 @@
public:
CriticalSection() {
pthread_mutexattr_t mutex_attribute;
+ pthread_mutexattr_init(&mutex_attribute);
pthread_mutexattr_settype(&mutex_attribute, PTHREAD_MUTEX_RECURSIVE);
pthread_mutex_init(&mutex_, &mutex_attribute);
+ pthread_mutexattr_destroy(&mutex_attribute);
}
~CriticalSection() {
pthread_mutex_destroy(&mutex_);