Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame^] | 1 | From 5229430874b5275547babdbef1e322922317456d Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Thu, 25 Jul 2019 23:30:27 -0700 |
| 4 | Subject: [PATCH 19/19] libfdt: Undefine __wordsize if already defined |
| 5 | |
| 6 | glibc 2.30+ defines __wordsize, which is same so its easier to compile |
| 7 | for multiple versions of glibc even ones which does not have this define |
| 8 | |
| 9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 10 | --- |
| 11 | opensrc/helpers/libfdt/libfdt_env.h | 4 ++++ |
| 12 | 1 file changed, 4 insertions(+) |
| 13 | |
| 14 | diff --git a/opensrc/helpers/libfdt/libfdt_env.h b/opensrc/helpers/libfdt/libfdt_env.h |
| 15 | index 1c966b8..fc25ca6 100644 |
| 16 | --- a/opensrc/helpers/libfdt/libfdt_env.h |
| 17 | +++ b/opensrc/helpers/libfdt/libfdt_env.h |
| 18 | @@ -56,6 +56,10 @@ |
| 19 | #include <stdint.h> |
| 20 | #include <string.h> |
| 21 | |
| 22 | +#ifdef __bitwise |
| 23 | +#undef __bitwise |
| 24 | +#endif |
| 25 | + |
| 26 | #ifdef __CHECKER__ |
| 27 | #define __force __attribute__((force)) |
| 28 | #define __bitwise __attribute__((bitwise)) |
| 29 | -- |
| 30 | 2.22.0 |
| 31 | |