add required virtual method for SrcFileSource
[ardour.git] / libs / pbd / stateful.cc
index 3e8cd267a5b202d6ccf7a76d87f40e4c1fa6c776..c4077f60af43e184739525b8f4b9b880275d7782 100644 (file)
     $Id: stateful.cc 629 2006-06-21 23:01:03Z paul $
 */
 
+#ifdef COMPILER_MSVC
+#include <io.h>      // Microsoft's nearest equivalent to <unistd.h>
+#else
 #include <unistd.h>
+#endif
 
 #include <glibmm/fileutils.h>
 #include <glibmm/miscutils.h>
@@ -278,7 +282,7 @@ Stateful::send_change (const PropertyChange& what_changed)
        }
 
        {
-               Glib::Mutex::Lock lm (_lock);
+               Glib::Threads::Mutex::Lock lm (_lock);
                if (property_changes_suspended ()) {
                        _pending_changed.add (what_changed);
                        return;
@@ -300,7 +304,7 @@ Stateful::resume_property_changes ()
        PropertyChange what_changed;
 
        {
-               Glib::Mutex::Lock lm (_lock);
+               Glib::Threads::Mutex::Lock lm (_lock);
 
                if (property_changes_suspended() && g_atomic_int_dec_and_test (&_stateful_frozen) == FALSE) {
                        return;