X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Futil.cc;h=03df393e40139d5a45052599b1801631ed412b87;hb=3147507622de5ab771c99a4bb636f55344f6cbd7;hp=b33a1148116ca54e192b7b8cb9e6a4ccdc89c072;hpb=2a195d71e20689fd90544543a6b049fae615a55f;p=chaz%2Fopenbox diff --git a/otk/util.cc b/otk/util.cc index b33a1148..03df393e 100644 --- a/otk/util.cc +++ b/otk/util.cc @@ -1,39 +1,29 @@ // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*- -#ifdef HAVE_CONFIG_H -# include "../config.h" -#endif // HAVE_CONFIG_H +#include "config.h" extern "C" { #include -#ifdef HAVE_STDIO_H -#include -#endif - -#ifdef HAVE_STRING_H -#include -#endif - -#ifdef HAVE_STDLIB_H -#include -#endif - #ifdef HAVE_UNISTD_H #include #endif // HAVE_UNISTD_H -#if defined(HAVE_PROCESS_H) && defined(__EMX__) -# include -#endif // HAVE_PROCESS_H __EMX__ +// this is not checked in configure anymore!! +//#if defined(HAVE_PROCESS_H) && defined(__EMX__) +//# include +//#endif // HAVE_PROCESS_H __EMX__ #include "../src/gettext.h" #define _(str) gettext(str) -#include } #include +#include +#include +#include +#include #include "util.hh" @@ -52,16 +42,16 @@ string expandTilde(const string& s) { void bexec(const string& command, const string& displaystring) { -#ifndef __EMX__ +//#ifndef __EMX__ if (! fork()) { setsid(); putenv(displaystring); int ret = execl("/bin/sh", "/bin/sh", "-c", command.c_str(), NULL); exit(ret); } -#else // __EMX__ - spawnlp(P_NOWAIT, "cmd.exe", "cmd.exe", "/c", command.c_str(), NULL); -#endif // !__EMX__ +//#else // __EMX__ +// spawnlp(P_NOWAIT, "cmd.exe", "cmd.exe", "/c", command.c_str(), NULL); +//#endif // !__EMX__ }