#include <sys/types.h>
#include <cstdio>
#include <cstdlib>
-#include <fstream>
#include <glib.h>
-#include <pbd/gstdio_compat.h>
+#include "pbd/gstdio_compat.h"
#ifdef HAVE_LRDF
#include <lrdf.h>
#include <cstring>
#endif //LXVST_SUPPORT
-#include <pbd/gstdio_compat.h>
#include <glibmm/miscutils.h>
#include <glibmm/pattern.h>
#include <glibmm/fileutils.h>
string fn = Glib::build_filename (ARDOUR::user_cache_directory(), VST_BLACKLIST);
if (Glib::file_test (fn, Glib::FILE_TEST_EXISTS)) {
gchar *bl = NULL;
- if (g_file_get_contents(fn.c_str (), contents, NULL, NULL)) {
+ if (g_file_get_contents(fn.c_str (), &bl, NULL, NULL)) {
PBD::info << _("VST Blacklist:") << "\n" << bl << "-----" << endmsg;
g_free (bl);
}