The non-standard header file <sysexits.h> provides some return values.
EX_IOERR is used to as a special value to signal a broken pipe to the clang driver.
On z/OS Unix System Services, this header file does not exists. This patch
- adds a check for <sysexits.h>, removing the dependency on LLVM_ON_UNIX
- adds a new header file llvm/Support/ExitCodes, which either includes <sysexits.h> or defines EX_IOERR
- updates the users of EX_IOERR to include the new header file
This is a private LLVM header and it's not installed. Therefore, this installed header references uninstalled headers and breaks standalone builds of clang. Please use llvm-config.h instead.