diff --git a/cfgtool/cfgtool.cc b/cfgtool/cfgtool.cc index 9cab329a6a..021484671b 100644 --- a/cfgtool/cfgtool.cc +++ b/cfgtool/cfgtool.cc @@ -1,4 +1,6 @@ #include +#include + #include "pbd/xml++.h" #include "ardour/rc_configuration.h" @@ -17,8 +19,8 @@ int main (int argc, char **argv) { return 0; } - setenv ("ARDOUR_DLL_PATH", "/xxx", 1); - setenv ("ARDOUR_CONFIG_PATH", "/xxx", 1); + g_setenv ("ARDOUR_DLL_PATH", "/xxx", 1); + g_setenv ("ARDOUR_CONFIG_PATH", "/xxx", 1); if (!ARDOUR::init (false, true, "/xxx")) { fprintf(stderr, "Failed to initialize libardour\n");