summaryrefslogtreecommitdiff
path: root/src/sysExec.h
diff options
context:
space:
mode:
authorMarkus Grüneis <gimpf@gimpf.org>2010-02-04 00:14:52 +0000
committerMarkus Grüneis <gimpf@gimpf.org>2010-02-04 00:14:52 +0000
commit7a0759d434d06305d7e602bd5debf9d01b92bbd1 (patch)
tree07ae46cbc86f4595ac6250b847fd3d60954e8d69 /src/sysExec.h
parentfixed build on windows (version.h) (diff)
win32 support for sysExec, sysExec.hpp arch-specific files introduced
Diffstat (limited to 'src/sysExec.h')
-rw-r--r--src/sysExec.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/sysExec.h b/src/sysExec.h
index 268384a..28e6d23 100644
--- a/src/sysExec.h
+++ b/src/sysExec.h
@@ -57,13 +57,20 @@ class SysExec
static void waitAndDestroy(SysExec*& s);
private:
- void doExec(std::string const& script, StringVector const& args, StringList const& env);
+ void doExec(std::string const& script, StringVector const& args, StringList const& env);
std::string script_;
+
+#ifdef _MSC_VER
+ PROCESS_INFORMATION process_info_;
+ DWORD return_code_;
+#else
pid_t pid_;
int pipefd_;
- bool closed_;
int return_code_;
+#endif
+ bool closed_;
+
};
#endif