clear up some stupid thinking in Amp regarding the way the underlying AutomationContr...
[ardour.git] / libs / ardour / audio_unit.cc
index 538a905ca2f2bdf8e5ff2c2407161fa5680ebcb2..1a24977399e504d8c4a1ca8522b0c7f723d49f7f 100644 (file)
@@ -34,6 +34,7 @@
 #include <glibmm/threads.h>
 #include <glibmm/fileutils.h>
 #include <glibmm/miscutils.h>
+#include <glib/gstdio.h>
 
 #include "ardour/ardour.h"
 #include "ardour/audioengine.h"
@@ -2453,7 +2454,7 @@ AUPluginInfo::save_cached_info ()
 
        if (!tree.write (path)) {
                error << string_compose (_("could not save AU cache to %1"), path) << endmsg;
-               unlink (path.c_str());
+               g_unlink (path.c_str());
        }
 }