erofs-utils: Use __SANE_USERSPACE_TYPES__ on ppc64

Message ID 20220313195204.3828846-1-raj.khem@gmail.com
State Accepted, archived
Commit 22f8a749fa956c82a0fe39eeb6948bd2068eb63a
Headers show
Series erofs-utils: Use __SANE_USERSPACE_TYPES__ on ppc64 | expand

Commit Message

Khem Raj March 13, 2022, 7:52 p.m. UTC
ppc64 historically has used l64 for defining u64 types in kernel
asm/types.h defaults to use l64 by default but kernel uses ll64 now a
days, therefore lets use same int-ll64.h to provide these defines like
other architectures

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/recipes-devtools/erofs-utils/erofs-utils_1.4.bb | 2 ++
 1 file changed, 2 insertions(+)

Patch

diff --git a/meta/recipes-devtools/erofs-utils/erofs-utils_1.4.bb b/meta/recipes-devtools/erofs-utils/erofs-utils_1.4.bb
index 16014d5b208..e5e19e75b43 100644
--- a/meta/recipes-devtools/erofs-utils/erofs-utils_1.4.bb
+++ b/meta/recipes-devtools/erofs-utils/erofs-utils_1.4.bb
@@ -22,4 +22,6 @@  PACKAGECONFIG[lz4] = "--enable-lz4,--disable-lz4,lz4"
 
 EXTRA_OECONF = "${PACKAGECONFIG_CONFARGS} --disable-fuse"
 
+CFLAGS:append:powerpc64le = " -D__SANE_USERSPACE_TYPES__"
+
 BBCLASSEXTEND = "native nativesdk"