diff --git a/libs/ardour/audiosource.cc b/libs/ardour/audiosource.cc index ff92b8977d..fc1cc23fa0 100644 --- a/libs/ardour/audiosource.cc +++ b/libs/ardour/audiosource.cc @@ -30,8 +30,11 @@ #include #include -#include +#include +#include + #include +#include #include #include @@ -179,7 +182,7 @@ AudioSource::touch_peakfile () { struct stat statbuf; - if (stat (peakpath.c_str(), &statbuf) != 0 || statbuf.st_size == 0) { + if (g_stat (peakpath.c_str(), &statbuf) != 0 || statbuf.st_size == 0) { return; }