From 610e30cde3d269f0340655a559d44394634f6e9d Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 23 Mar 2015 12:34:07 +0100 Subject: [PATCH] ..but make cfgtool portable --- cfgtool/cfgtool.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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");