diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2007-03-09 11:53:34 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2007-03-09 11:53:34 +0000 |
commit | 349ec1c11b09684965f4326c119f76ce3025d270 (patch) | |
tree | baa262920753cc3123c0b35e9cd5329012c7a929 | |
parent | e2ee99620fa6e428292737349d8e28bbcdcdaa0b (diff) | |
download | external_llvm-349ec1c11b09684965f4326c119f76ce3025d270.zip external_llvm-349ec1c11b09684965f4326c119f76ce3025d270.tar.gz external_llvm-349ec1c11b09684965f4326c119f76ce3025d270.tar.bz2 |
Unbreak mingw32 build
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35042 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/System/Win32/Program.inc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/System/Win32/Program.inc b/lib/System/Win32/Program.inc index 0d870dc..7cc14a2 100644 --- a/lib/System/Win32/Program.inc +++ b/lib/System/Win32/Program.inc @@ -98,6 +98,14 @@ static HANDLE RedirectIO(const Path *path, int fd, std::string* ErrMsg) { return h; } +#ifdef __MINGW32__ + // Due to unknown reason, mingw32's w32api doesn't have this declaration. + BOOL WINAPI SetInformationJobObject(HANDLE hJob, + JOBOBJECTINFOCLASS JobObjectInfoClass, + LPVOID lpJobObjectInfo, + DWORD cbJobObjectInfoLength); +#endif + int Program::ExecuteAndWait(const Path& path, const char** args, |