All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org>
To: qemu-devel@nongnu.org, Riku Voipio <riku.voipio@iki.fi>
Subject: [Qemu-devel] [PATCH 9/9] linux-user: fix build errors for mmap2-only ports
Date: Mon,  7 Feb 2011 01:05:57 -0500	[thread overview]
Message-ID: <1297058757-7611-9-git-send-email-vapier@gentoo.org> (raw)
In-Reply-To: <1297058757-7611-1-git-send-email-vapier@gentoo.org>

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

      parent reply	other threads:[~2011-02-07  6:06 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-07  6:05 [Qemu-devel] [PATCH 1/9] linux-user: fix sizeof handling for getsockopt Mike Frysinger
2011-02-07  6:05 ` [Qemu-devel] [PATCH 2/9] linux-user/elfload: add FDPIC support Mike Frysinger
2011-02-07  6:05 ` [Qemu-devel] [PATCH 3/9] linux-user: add ppoll syscall support Mike Frysinger
2011-02-07  6:05 ` [Qemu-devel] [PATCH 4/9] linux-user: decode MAP_{UNINITIALIZED, EXECUTABLE} in strace Mike Frysinger
2011-02-07  6:05 ` [Qemu-devel] [PATCH 5/9] linux-user/FLAT: fix auto-stack sizing Mike Frysinger
2011-02-07  6:05 ` [Qemu-devel] [PATCH 6/9] linux-user/FLAT: allow targets to override FLAT processing Mike Frysinger
2011-02-07  6:05 ` [Qemu-devel] [PATCH 7/9] linux-user: implement sched_{g, s}etaffinity Mike Frysinger
2011-02-07  6:05 ` [Qemu-devel] [PATCH 8/9] user: speed up init_paths a bit Mike Frysinger
2011-02-07  6:05 ` Mike Frysinger [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1297058757-7611-9-git-send-email-vapier@gentoo.org \
    --to=vapier@gentoo.org \
    --cc=qemu-devel@nongnu.org \
    --cc=riku.voipio@iki.fi \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.