From: LLVM Packaging Team Date: Wed, 30 Nov 2022 14:31:52 +0000 (+0000) Subject: syscall-mips64el-def X-Git-Tag: archive/raspbian/1%16.0.6-15+rpi1~4^2^2^2~40 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3e8b07ed2c68a6c95fa78017a415f3e3cdbe5ba9;p=llvm-toolchain-16.git syscall-mips64el-def =================================================================== Gbp-Pq: Topic mips Gbp-Pq: Name syscall-mips64el-def.diff --- diff --git a/compiler-rt/lib/builtins/clear_cache.c b/compiler-rt/lib/builtins/clear_cache.c index 9816940b50..e7e00bac55 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