]> granicus.if.org Git - strace/commitdiff
ppc64: fix PRI__64 macro definition when compiled with -m32
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 20 Sep 2017 00:15:02 +0000 (00:15 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 20 Sep 2017 00:15:02 +0000 (00:15 +0000)
* kernel_types.h [SIZEOF_LONG != 4]: Check for __powerpc64__ instead
of POWERPC to handle -m32 case properly.

kernel_types.h

index 3651014f1442f72588812cd36ddb8aef99cf7a2c..79ac171c2b4b40f778385c69c1b7e53d5920b1eb 100644 (file)
@@ -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