diff --git a/libs/ardour/linux_vst_support.cc b/libs/ardour/linux_vst_support.cc index e6f2735351..4ebce2a826 100644 --- a/libs/ardour/linux_vst_support.cc +++ b/libs/ardour/linux_vst_support.cc @@ -9,6 +9,8 @@ #include #include #include +#include +#include #include "ardour/linux_vst_support.h" #include "pbd/error.h" @@ -360,7 +362,7 @@ void vstfx_close (VSTState* vstfx) bool vstfx_save_state (VSTState* vstfx, char * filename) { - FILE* f = fopen (filename, "wb"); + FILE* f = g_fopen (filename, "wb"); if (f) { int bytelen;