summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorakir <akir>2004-10-21 10:24:34 (GMT)
committerakir <akir>2004-10-21 10:24:34 (GMT)
commit35fb9fe2919571a7a4868e8012d3a52dbb871a55 (patch)
tree341820c9ede72155f7b66eb9f031b00631d293d3 /src
parent0ebe06822d02fee61009a1da905ff3a61b6466a2 (diff)
downloadfluxbox_lack-35fb9fe2919571a7a4868e8012d3a52dbb871a55.zip
fluxbox_lack-35fb9fe2919571a7a4868e8012d3a52dbb871a55.tar.bz2
putenv is more platform independent
Diffstat (limited to 'src')
-rw-r--r--src/FbCommands.cc11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/FbCommands.cc b/src/FbCommands.cc
index b57534c..e4ea86d 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.28 2004/10/06 11:40:28 akir Exp $ 22// $Id: FbCommands.cc,v 1.29 2004/10/21 10:24:34 akir Exp $
23 23
24#include "FbCommands.hh" 24#include "FbCommands.hh"
25#include "fluxbox.hh" 25#include "fluxbox.hh"
@@ -38,6 +38,13 @@
38#include <fstream> 38#include <fstream>
39#include <iostream> 39#include <iostream>
40 40
41#ifdef HAVE_CSTDLIB
42 #include <cstdlib>
43#else
44 #include <stdlib.h>
45#endif
46
47
41#ifdef HAVE_CONFIG_H 48#ifdef HAVE_CONFIG_H
42#include "config.h" 49#include "config.h"
43#endif // HAVE_CONFIG_H 50#endif // HAVE_CONFIG_H
@@ -128,7 +135,7 @@ ExportCmd::ExportCmd(const std::string& name, const std::string& value) :
128} 135}
129 136
130void ExportCmd::execute() { 137void ExportCmd::execute() {
131 setenv(m_name.c_str(), m_value.c_str(), 1); 138 putenv((m_name + "=" + m_value).c_str());
132} 139}
133 140
134 141