OSDN Git Service

android: Fix out-of-tree clang build due to sysexits change
authorMauro Rossi <issor.oruam@gmail.com>
Sat, 30 Jan 2021 10:23:14 +0000 (11:23 +0100)
committerMauro Rossi <issor.oruam@gmail.com>
Thu, 15 Apr 2021 11:05:15 +0000 (13:05 +0200)
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

index c9e82da..6924e70 100644 (file)
 /* Define if this is Unixish platform */
 #define LLVM_ON_UNIX 1
 
+/* Define to 1 if you have the <sysexits.h> header file. */
+#define HAVE_SYSEXITS_H 1
+
 /* Define if this is Win32ish platform */
 /* #undef LLVM_ON_WIN32 */