From: Dmitry V. Levin Date: Wed, 20 Sep 2017 00:15:02 +0000 (+0000) Subject: ppc64: fix PRI__64 macro definition when compiled with -m32 X-Git-Tag: v4.20~57 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c8a294a585c72e5df5b701806c20cbe96b21c12b;p=strace ppc64: fix PRI__64 macro definition when compiled with -m32 * kernel_types.h [SIZEOF_LONG != 4]: Check for __powerpc64__ instead of POWERPC to handle -m32 case properly. --- diff --git a/kernel_types.h b/kernel_types.h index 3651014f..79ac171c 100644 --- a/kernel_types.h +++ b/kernel_types.h @@ -76,7 +76,7 @@ typedef struct { */ #if SIZEOF_LONG == 4 # define PRI__64 "ll" -#elif defined ALPHA || defined IA64 || defined POWERPC \ +#elif defined ALPHA || defined IA64 || defined __powerpc64__ \ || (defined MIPS && !defined __ANDROID__) # define PRI__64 "l" #else