From ea0e42dee748e67feaeb84c7fe407f69c6cf740b Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 15 Jul 2013 12:40:34 -0400 Subject: [PATCH] Use g_stat in AudioSource::touch_peakfile for portability --- libs/ardour/audiosource.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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; }