1 The custom mutex definition in Seq24 clashes with the mutex defined in gtkmm.
2 This patch renames the custom definition.
4 See https://bugs.launchpad.net/seq24/+bug/1647614 for upstream bug report.
6 diff --git a/src/midibus.h b/src/midibus.h
7 index 2cdf8e8..1bb02bd 100644
10 @@ -90,7 +90,7 @@ class midibus
19 @@ -208,7 +208,7 @@ class mastermidibus
28 diff --git a/src/midibus_portmidi.h b/src/midibus_portmidi.h
29 index 0119e9c..8c6a27a 100644
30 --- a/src/midibus_portmidi.h
31 +++ b/src/midibus_portmidi.h
32 @@ -65,7 +65,7 @@ class midibus
41 @@ -164,7 +164,7 @@ class mastermidibus
50 diff --git a/src/mutex.cpp b/src/mutex.cpp
51 index b3f23fd..914114f 100644
58 -const pthread_mutex_t mutex::recmutex = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
59 +const pthread_mutex_t seq24mutex::recmutex = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
60 const pthread_cond_t condition_var::cond = PTHREAD_COND_INITIALIZER;
63 +seq24mutex::seq24mutex( )
65 m_mutex_lock = recmutex;
72 pthread_mutex_lock( &m_mutex_lock );
78 +seq24mutex::unlock( )
80 pthread_mutex_unlock( &m_mutex_lock );
82 diff --git a/src/mutex.h b/src/mutex.h
83 index 399f8a3..4f1b867 100644
95 @@ -37,14 +37,14 @@ protected:
107 -class condition_var : public mutex {
108 +class condition_var : public seq24mutex {
112 diff --git a/src/sequence.h b/src/sequence.h
113 index 2943946..9da8700 100644
116 @@ -153,7 +153,7 @@ class sequence
121 + seq24mutex m_mutex;
123 /* used to idenfity which events are ours in the out queue */
124 //unsigned char m_tag;