From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=47996 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pj7nt-0003cS-BV for qemu-devel@nongnu.org; Sat, 29 Jan 2011 05:13:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pj7ns-000212-9d for qemu-devel@nongnu.org; Sat, 29 Jan 2011 05:13:13 -0500 Received: from smtp.gentoo.org ([140.211.166.183]:55645) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pj7ns-00020g-47 for qemu-devel@nongnu.org; Sat, 29 Jan 2011 05:13:12 -0500 From: Mike Frysinger Date: Sat, 29 Jan 2011 05:13:09 -0500 Message-Id: <1296295989-23078-1-git-send-email-vapier@gentoo.org> Subject: [Qemu-devel] [PATCH] linux-user: fix build errors for mmap2-only ports List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, 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 --- 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