diff options
author | fanquake <fanquake@gmail.com> | 2022-04-20 15:52:04 +0100 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2022-05-12 08:21:15 +0100 |
commit | 508bd4d35720fd611a7bdfed559f46e7dbc70272 (patch) | |
tree | fd5cd3f34c93c6f7fb8fd35480704fa4f7852a5b /contrib/guix/manifest.scm | |
parent | c9c5b3060d2edb47ebfa7974fdde3154036717c2 (diff) | |
download | bitcoin-508bd4d35720fd611a7bdfed559f46e7dbc70272.tar.xz |
guix: adjust RISC-V __has_include() patch to work with GCC 10
The actual macro is __has_include(), not __has_include__(), using the
later would result in build failures when using GCC 10. i.e:
```bash
../sysdeps/unix/sysv/linux/riscv/flush-icache.c:24:5: warning: "__has_include__" is not defined, evaluates to 0 [-Wundef]
24 | #if __has_include__ (<asm/syscalls.h>)
```
Looks like at least someone else has run into the same thing, see:
http://lists.busybox.net/pipermail/buildroot/2020-July/590376.html.
See also:
https://gcc.gnu.org/onlinedocs/cpp/_005f_005fhas_005finclude.html
https://clang.llvm.org/docs/LanguageExtensions.html#has-include
Diffstat (limited to 'contrib/guix/manifest.scm')
-rw-r--r-- | contrib/guix/manifest.scm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/guix/manifest.scm b/contrib/guix/manifest.scm index 1b2590013e..34fccac48d 100644 --- a/contrib/guix/manifest.scm +++ b/contrib/guix/manifest.scm @@ -553,7 +553,7 @@ inspecting signatures in Mach-O binaries.") (base32 "1b2n1gxv9f4fd5yy68qjbnarhf8mf4vmlxk10i3328c1w5pmp0ca")) (patches (search-our-patches "glibc-ldd-x86_64.patch" - "glibc-2.27-riscv64-Use-__has_include__-to-include-asm-syscalls.h.patch")))))) + "glibc-2.27-riscv64-Use-__has_include-to-include-asm-syscalls.h.patch")))))) (packages->manifest (append |