From: Mike Frysinger Date: Mon, 7 Feb 2011 06:05:57 +0000 (-0500) Subject: linux-user: fix build errors for mmap2-only ports X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=8d9016c0919bab1fdf3a36c0f72d012924bb7efd;p=qemu.git linux-user: fix build errors for mmap2-only ports 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 Signed-off-by: Riku Voipio --- diff --git a/linux-user/strace.c b/linux-user/strace.c index a8786bb9e0..18366661cd 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,