summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2007-03-09 11:53:34 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2007-03-09 11:53:34 +0000
commit2f4ae5306e90ed4dda92436b3130bb44664aa571 (patch)
tree5836f171e4f2edf4c5f1dc53df79e4257a6e4485 /llvm
parentdf7949a8d0e913f56d33d5b4d85b3dc27a84290d (diff)
downloadbcm5719-llvm-2f4ae5306e90ed4dda92436b3130bb44664aa571.tar.gz
bcm5719-llvm-2f4ae5306e90ed4dda92436b3130bb44664aa571.zip
Unbreak mingw32 build
llvm-svn: 35042
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/System/Win32/Program.inc8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/System/Win32/Program.inc b/llvm/lib/System/Win32/Program.inc
index 0d870dc4a35..7cc14a24d4d 100644
--- a/llvm/lib/System/Win32/Program.inc
+++ b/llvm/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,
OpenPOWER on IntegriCloud