VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Main
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2020-12-20 01:19:00 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2020-12-20 01:22:16 +0100
commit4b9bfecf6a6ed47a20ab08e2059aa28f9eb8f2b3 (patch)
tree1a0da2503d1f74be7287ea0aa3b004c56e6618c6 /src/Main
parent55913322f85fcdd7cc8e5dcd5b479c20ba87959e (diff)
downloadVeraCrypt-4b9bfecf6a6ed47a20ab08e2059aa28f9eb8f2b3.tar.gz
VeraCrypt-4b9bfecf6a6ed47a20ab08e2059aa28f9eb8f2b3.zip
Linux: fix build error with old gcc compilers that don't have std::getenv
Diffstat (limited to 'src/Main')
-rw-r--r--src/Main/Resources.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Main/Resources.cpp b/src/Main/Resources.cpp
index fe2f2c95..32bcd9d2 100644
--- a/src/Main/Resources.cpp
+++ b/src/Main/Resources.cpp
@@ -63,7 +63,7 @@ namespace VeraCrypt
string filenamePrefix("/usr/share/veracrypt/languages/Language.");
string filenamePost(".xml");
string filename = filenamePrefix + defaultLang + filenamePost;
- if(const char* env_p = std::getenv("LANG")){
+ if(const char* env_p = getenv("LANG")){
string lang(env_p);
std::cout << lang << std::endl;
if ( lang.size() > 1 ){