diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-02-07 01:05:57 -0500 |
---|---|---|
committer | Riku Voipio <riku.voipio@nokia.com> | 2011-02-09 10:33:54 +0200 |
commit | 8d9016c0919bab1fdf3a36c0f72d012924bb7efd (patch) | |
tree | 87836c7587e34eebee4e8ffc9452c5d3d17330c0 /linux-user/strace.c | |
parent | 2296f194dfde4c0a54f249d3fdb8c8ca21dc611b (diff) | |
download | qemu-8d9016c0919bab1fdf3a36c0f72d012924bb7efd.zip qemu-8d9016c0919bab1fdf3a36c0f72d012924bb7efd.tar.gz qemu-8d9016c0919bab1fdf3a36c0f72d012924bb7efd.tar.bz2 |
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 <vapier@gentoo.org>
Signed-off-by: Riku Voipio <riku.voipio@nokia.com>
Diffstat (limited to 'linux-user/strace.c')
-rw-r--r-- | 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, |