aboutsummaryrefslogtreecommitdiff
path: root/tools/mhmake/src/commandqueue.h
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2010-02-19 17:09:40 +0000
committermarha <marha@users.sourceforge.net>2010-02-19 17:09:40 +0000
commit68504d1066c26aa26b73d5be549d7a95d6afd8ed (patch)
treeaec0dd1ce863c0bf082b7b90e09dfd510bb2714d /tools/mhmake/src/commandqueue.h
parente99c3e5c94628984d5f1f38b38ce3ed0363e3935 (diff)
downloadvcxsrv-68504d1066c26aa26b73d5be549d7a95d6afd8ed.tar.gz
vcxsrv-68504d1066c26aa26b73d5be549d7a95d6afd8ed.tar.bz2
vcxsrv-68504d1066c26aa26b73d5be549d7a95d6afd8ed.zip
Linux compilation is ok again.
Diffstat (limited to 'tools/mhmake/src/commandqueue.h')
-rw-r--r--tools/mhmake/src/commandqueue.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/tools/mhmake/src/commandqueue.h b/tools/mhmake/src/commandqueue.h
index 1e70e3cb6..7480d63dd 100644
--- a/tools/mhmake/src/commandqueue.h
+++ b/tools/mhmake/src/commandqueue.h
@@ -23,6 +23,12 @@
#include "fileinfo.h"
+#ifdef WIN32
+typedef HANDLE mh_pid_t;
+#else
+typedef pid_t mh_pid_t;
+#endif
+
class commandqueue
{
struct activeentry
@@ -36,7 +42,7 @@ class commandqueue
private:
queue< refptr<fileinfo> > m_Queue;
unsigned m_MaxNrCommandsInParallel;
- HANDLE *m_pActiveProcesses;
+ mh_pid_t *m_pActiveProcesses;
activeentry *m_pActiveEntries;
unsigned m_NrActiveEntries;
@@ -44,7 +50,7 @@ private:
void ThrowCommandExecutionError(activeentry *pActiveEntry);
void RemoveActiveEntry(unsigned Entry);
bool StartExecuteCommands(const refptr<fileinfo> &pTarget);
- bool StartExecuteNextCommand(activeentry *pActiveEntry, HANDLE *pActiveProcess);
+ bool StartExecuteNextCommand(activeentry *pActiveEntry, mh_pid_t *pActiveProcess);
void TargetBuildFinished(activeentry *pActiveEntry);
public: