OSDN Git Service

[Support][AIX] Add declaration of wait4 to fix build
authorHubert Tong <hubert.reinterpretcast@gmail.com>
Thu, 25 Jun 2020 19:40:07 +0000 (15:40 -0400)
committerHubert Tong <hubert.reinterpretcast@gmail.com>
Thu, 25 Jun 2020 19:40:07 +0000 (15:40 -0400)
commit7b2eb7a6212f210401bb73686455809b548c0021
tree1be7312b9f8a2d101be06bcdf4095bd22a60675d
parentd8e3e55857b27dc812626ac638c13dd9a2f6a027
[Support][AIX] Add declaration of wait4 to fix build

While `wait4` is not documented for AIX, it is available; however, even
on systems where it is available, the system headers do not always
provide a declaration of the function. This patch provides a declaration
of `wait4` for AIX.

Reviewed By: daltenty

Differential Revision: https://reviews.llvm.org/D82282
llvm/lib/Support/Unix/Program.inc