From 9c11a40e3004e461f95eeb4f940aca6f616fe96d Mon Sep 17 00:00:00 2001 From: Mauro Rossi Date: Sat, 30 Jan 2021 11:23:14 +0100 Subject: [PATCH] android: Fix out-of-tree clang build due to sysexits change Porting of commit 5e4409f30817 ("Fix out-of-tree clang build due to sysexits change") Fixes the following building errors: In file included from external/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:12: external/llvm-project/llvm/include/llvm/Support/ExitCodes.h:30:2: error: Exit code EX_IOERR not available ^ external/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:385:15: error: use of undeclared identifier 'EX_IOERR' RetCode = EX_IOERR; ^ 2 errors generated. --- llvm/include/llvm/Config/llvm-platform-config.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/llvm/include/llvm/Config/llvm-platform-config.h b/llvm/include/llvm/Config/llvm-platform-config.h index c9e82dabcc8..6924e7099d0 100644 --- a/llvm/include/llvm/Config/llvm-platform-config.h +++ b/llvm/include/llvm/Config/llvm-platform-config.h @@ -149,6 +149,9 @@ /* Define if this is Unixish platform */ #define LLVM_ON_UNIX 1 +/* Define to 1 if you have the header file. */ +#define HAVE_SYSEXITS_H 1 + /* Define if this is Win32ish platform */ /* #undef LLVM_ON_WIN32 */ -- 2.11.0