fix: fix putenv in utilityMaven

* include cstdlib
* const cast to char*
This commit is contained in:
Andreas Stallinger
2017-06-27 12:32:57 +02:00
parent ea047cde78
commit 68affaa4bc
+1 -1
View File
@@ -52,7 +52,7 @@ namespace
LOG_WARNING("Environment variable \"JAVA_HOME\" not found on system. Setting value to \"" + javaHomePath.str() + "\" for this process.");
putenv(("JAVA_HOME=" + javaHomePath.str()).c_str());
putenv(const_cast<char*>(("JAVA_HOME=" + javaHomePath.str()).c_str()));
}
}
}