From ba89823959c7d7fc5ed1e7a8f00210dd5aea7bc5 Mon Sep 17 00:00:00 2001 From: LLVM Packaging Team Date: Mon, 16 Oct 2023 13:14:10 +0000 Subject: [PATCH] syscall-mips64el-def =================================================================== Gbp-Pq: Topic mips Gbp-Pq: Name syscall-mips64el-def.diff --- compiler-rt/lib/builtins/clear_cache.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/compiler-rt/lib/builtins/clear_cache.c b/compiler-rt/lib/builtins/clear_cache.c index 8993761eb3..2c43e84a18 100644 --- a/compiler-rt/lib/builtins/clear_cache.c +++ b/compiler-rt/lib/builtins/clear_cache.c @@ -6,6 +6,11 @@ // //===----------------------------------------------------------------------===// +#if defined(__linux__) && defined(__mips__) +// Otherwise, the build fails as it cannot find syscall +#define _GNU_SOURCE +#endif + #include "int_lib.h" #if defined(__linux__) #include -- 2.30.2