qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Vince Weaver <vince@csl.cornell.edu>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] linux-user F_DUPFD_CLOEXEC fix
Date: Wed, 9 Sep 2009 12:06:11 -0400 (EDT)	[thread overview]
Message-ID: <20090909120328.R4195@stanley.csl.cornell.edu> (raw)

Hello

on older machines, the F_DUPFD_CLOEXEC define is not available.  So 
linux-user targets fail to compile.

This fix simply disables the feature if it's not available.

Vince

Signed-off-by: Vince Weaver <vince@csl.cornell.edu>

diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 25b95ea..6fdb9f1 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -3685,8 +3685,10 @@ static int target_to_host_fcntl_cmd(int cmd)
             return F_SETLEASE;
         case TARGET_F_GETLEASE:
             return F_GETLEASE;
+#ifdef F_DUPFD_CLOEXEC       
         case TARGET_F_DUPFD_CLOEXEC:
             return F_DUPFD_CLOEXEC;
+#endif       
         case TARGET_F_NOTIFY:
             return F_NOTIFY;
 	default:

             reply	other threads:[~2009-09-09 16:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-09 16:06 Vince Weaver [this message]
2009-09-09 18:16 ` [Qemu-devel] [PATCH] linux-user F_DUPFD_CLOEXEC fix malc

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=20090909120328.R4195@stanley.csl.cornell.edu \
    --to=vince@csl.cornell.edu \
    --cc=qemu-devel@nongnu.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).