From 51264f13724bbf54e5b749c15126e886adfe0705 Mon Sep 17 00:00:00 2001 From: Stefan Schimanski Date: Sat, 8 Dec 2007 00:17:36 +0000 Subject: [PATCH] * putenv wants a non-const char * git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22006 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/support/environment.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/support/environment.cpp b/src/support/environment.cpp index d766bd583e..477dbf6848 100644 --- a/src/support/environment.cpp +++ b/src/support/environment.cpp @@ -68,7 +68,7 @@ bool setEnv(string const & name, string const & value) #elif defined (HAVE_PUTENV) static std::map varmap; varmap[name] = name + '=' + encoded; - return ::putenv(varmap[name].c_str()) == 0; + return ::putenv(const_cast(varmap[name].c_str())) == 0; #else #error No environment-setting function has been defined. #endif