From 68504d1066c26aa26b73d5be549d7a95d6afd8ed Mon Sep 17 00:00:00 2001 From: marha Date: Fri, 19 Feb 2010 17:09:40 +0000 Subject: Linux compilation is ok again. --- tools/mhmake/src/commandqueue.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'tools/mhmake/src/commandqueue.h') 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 > 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 &pTarget); - bool StartExecuteNextCommand(activeentry *pActiveEntry, HANDLE *pActiveProcess); + bool StartExecuteNextCommand(activeentry *pActiveEntry, mh_pid_t *pActiveProcess); void TargetBuildFinished(activeentry *pActiveEntry); public: -- cgit v1.2.3