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