* [Qemu-devel] [PATCH] linux-user: fix build errors for mmap2-only ports
@ 2011-01-29 10:13 Mike Frysinger
0 siblings, 0 replies; only message in thread
From: Mike Frysinger @ 2011-01-29 10:13 UTC (permalink / raw)
To: qemu-devel, Riku Voipio
The current print_mmap func is only enabled when the target supports the
mmap syscall, but both mmap and mmap2 syscalls use it. This leads to a
build failure when the target supports mmap2 but not mmap.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
linux-user/strace.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/linux-user/strace.c b/linux-user/strace.c
index a8786bb..1836666 100644
--- a/linux-user/strace.c
+++ b/linux-user/strace.c
@@ -1203,7 +1203,7 @@ print_utimensat(const struct syscallname *name,
}
#endif
-#ifdef TARGET_NR_mmap
+#if defined(TARGET_NR_mmap) || defined(TARGET_NR_mmap2)
static void
print_mmap(const struct syscallname *name,
abi_long arg0, abi_long arg1, abi_long arg2,
--
1.7.4.rc3
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-01-29 10:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-29 10:13 [Qemu-devel] [PATCH] linux-user: fix build errors for mmap2-only ports Mike Frysinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).