Use pthread_equal in libmidi++ for portability
[ardour.git] / libs / midi++2 / jack_midi_port.cc
index 05df3171fa46a0c721c71f913a7309e14e23a429..e1a68b64759616ed81d413482d92c3a0bad2e760 100644 (file)
@@ -458,7 +458,7 @@ JackMIDIPort::set_process_thread (pthread_t thr)
 bool
 JackMIDIPort::is_process_thread()
 {
-       return (pthread_self() == _process_thread);
+       return (pthread_equal(pthread_self(), _process_thread));
 }
 
 void