[PATCH] D82282: [Support][AIX] Add declaration of wait4 to fix build
Hubert Tong via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 22 13:59:45 PDT 2020
hubert.reinterpretcast updated this revision to Diff 272537.
hubert.reinterpretcast added a comment.
Add declaration of wait4 to fix AIX build
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D82282/new/
https://reviews.llvm.org/D82282
Files:
llvm/lib/Support/Unix/Program.inc
Index: llvm/lib/Support/Unix/Program.inc
===================================================================
--- llvm/lib/Support/Unix/Program.inc
+++ llvm/lib/Support/Unix/Program.inc
@@ -329,6 +329,11 @@
return true;
}
+#ifdef _AIX
+extern "C" pid_t (wait4)(pid_t pid, int *status, int options,
+ struct rusage *usage);
+#endif
+
namespace llvm {
ProcessInfo sys::Wait(const ProcessInfo &PI, unsigned SecondsToWait,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82282.272537.patch
Type: text/x-patch
Size: 452 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200622/c90cb43a/attachment.bin>
More information about the llvm-commits
mailing list