diff options
Diffstat (limited to 'libs/ardour/vst_info_file.cc')
-rw-r--r-- | libs/ardour/vst_info_file.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/libs/ardour/vst_info_file.cc b/libs/ardour/vst_info_file.cc index fb8e7dc37a..6ab9de2a2b 100644 --- a/libs/ardour/vst_info_file.cc +++ b/libs/ardour/vst_info_file.cc @@ -27,7 +27,6 @@ #include <cassert> #include <sys/types.h> -#include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include <errno.h> @@ -419,11 +418,11 @@ vstfx_infofile_for_read (const char* dllpath) string const path = vstfx_infofile_path (dllpath); if (Glib::file_test (path, Glib::FileTest (Glib::FILE_TEST_EXISTS | Glib::FILE_TEST_IS_REGULAR))) { - struct stat dllstat; - struct stat fsistat; + GStatBuf dllstat; + GStatBuf fsistat; - if (stat (dllpath, &dllstat) == 0) { - if (stat (path.c_str (), &fsistat) == 0) { + if (g_stat (dllpath, &dllstat) == 0) { + if (g_stat (path.c_str (), &fsistat) == 0) { if (dllstat.st_mtime <= fsistat.st_mtime) { /* plugin is older than info file */ return g_fopen (path.c_str (), "rb"); |