summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/FbCommands.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/FbCommands.cc b/src/FbCommands.cc
index e4ea86d..1d298a4 100644
--- a/src/FbCommands.cc
+++ b/src/FbCommands.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: FbCommands.cc,v 1.29 2004/10/21 10:24:34 akir Exp $ 22// $Id: FbCommands.cc,v 1.30 2004/10/21 13:05:50 akir Exp $
23 23
24#include "FbCommands.hh" 24#include "FbCommands.hh"
25#include "fluxbox.hh" 25#include "fluxbox.hh"
@@ -135,7 +135,12 @@ ExportCmd::ExportCmd(const std::string& name, const std::string& value) :
135} 135}
136 136
137void ExportCmd::execute() { 137void ExportCmd::execute() {
138// TODO: we need to analyze this a bit more
139#if defined sgi && ! defined GCC
138 putenv((m_name + "=" + m_value).c_str()); 140 putenv((m_name + "=" + m_value).c_str());
141#else
142 setenv(m_name.c_str(), m_value.c_str(), 1);
143#endif
139} 144}
140 145
141 146