diff options
author | marha <marha@users.sourceforge.net> | 2010-02-19 17:09:40 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2010-02-19 17:09:40 +0000 |
commit | 68504d1066c26aa26b73d5be549d7a95d6afd8ed (patch) | |
tree | aec0dd1ce863c0bf082b7b90e09dfd510bb2714d /tools/mhmake/src/commandqueue.h | |
parent | e99c3e5c94628984d5f1f38b38ce3ed0363e3935 (diff) | |
download | vcxsrv-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.h | 10 |
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:
|