Skip to content

Commit

Permalink
linux-user: fix build errors for mmap2-only ports
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
vapier authored and Riku Voipio committed Feb 9, 2011
1 parent 2296f19 commit 8d9016c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linux-user/strace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8d9016c

Please sign in to comment.