[PATCH] fix building for mips n64/sparc64 targets

Mike Frysinger vapier at gentoo.org
Sat May 4 17:25:22 UTC 2013


* util.c (printllval): Handle LINUX_MIPSN64 and SPARC64 defines.
---
 util.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/util.c b/util.c
index 6f9f505..83fdf29 100644
--- a/util.c
+++ b/util.c
@@ -177,7 +177,8 @@ printxval(const struct xlat *xlat, int val, const char *dflt)
 int
 printllval(struct tcb *tcp, const char *format, int arg_no)
 {
-#if defined(X86_64) || defined(POWERPC64) || defined(TILE) || defined(AARCH64)
+#if defined(X86_64) || defined(POWERPC64) || defined(TILE) || defined(AARCH64) || \
+    defined(LINUX_MIPSN64) || defined(SPARC64)
 	if (current_personality == 0) {
 		/* Technically, format expects "long long",
 		 * but we supply "long". We expect that
-- 
1.8.2.1





More information about the Strace-devel mailing list