mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 13:45:43 +01:00
Use g_stat in AudioSource::touch_peakfile for portability
This commit is contained in:
parent
81dbc20bac
commit
ea0e42dee7
1 changed files with 5 additions and 2 deletions
|
|
@ -30,8 +30,11 @@
|
|||
#include <algorithm>
|
||||
#include <vector>
|
||||
|
||||
#include <boost/scoped_ptr.hpp>
|
||||
#include <glib.h>
|
||||
#include <glib/gstdio.h>
|
||||
|
||||
#include <boost/scoped_array.hpp>
|
||||
#include <boost/scoped_ptr.hpp>
|
||||
|
||||
#include <glibmm/fileutils.h>
|
||||
#include <glibmm/miscutils.h>
|
||||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue