diff options
Diffstat (limited to 'recipes-graphics/userland/files/0019-libfdt-Undefine-__wordsize-if-already-defined.patch')
| -rw-r--r-- | recipes-graphics/userland/files/0019-libfdt-Undefine-__wordsize-if-already-defined.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/recipes-graphics/userland/files/0019-libfdt-Undefine-__wordsize-if-already-defined.patch b/recipes-graphics/userland/files/0019-libfdt-Undefine-__wordsize-if-already-defined.patch new file mode 100644 index 0000000..fc66f53 --- /dev/null +++ b/recipes-graphics/userland/files/0019-libfdt-Undefine-__wordsize-if-already-defined.patch | |||
| @@ -0,0 +1,31 @@ | |||
| 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 | |||
