qemu-trivial.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Weil <sw@weilnetz.de>
To: qemu-trivial@nongnu.org, Anthony Liguori <aliguori@us.ibm.com>
Cc: Stefan Weil <sw@weilnetz.de>, qemu-devel@nongnu.org
Subject: [Qemu-trivial] [PATCH] qemu-common: Add definition for O_NONBLOCK
Date: Sat, 17 Nov 2012 17:40:43 +0100	[thread overview]
Message-ID: <1353170443-18168-1-git-send-email-sw@weilnetz.de> (raw)

backends/rng-random.c which was added by commit
5c74521d249486fa3e749dbbf6d56a70d4d7235f needs
macro O_NONBLOCK.

The macro O_NONBLOCK is not defined for all hosts.
Adding a default definition fixes builds for MinGW.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
---

This is a build fix. Therefore I'd appreciate if it could be
committed soon.

Thanks
Stefan W.

 qemu-common.h |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/qemu-common.h b/qemu-common.h
index ac9985c..3a5616c 100644
--- a/qemu-common.h
+++ b/qemu-common.h
@@ -55,6 +55,9 @@ typedef struct MigrationParams MigrationParams;
 #ifndef O_BINARY
 #define O_BINARY 0
 #endif
+#ifndef O_NONBLOCK
+#define O_NONBLOCK 0
+#endif
 #ifndef MAP_ANONYMOUS
 #define MAP_ANONYMOUS MAP_ANON
 #endif
-- 
1.7.10.4



             reply	other threads:[~2012-11-17 16:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-17 16:40 Stefan Weil [this message]
2012-11-18  8:55 ` [Qemu-trivial] [PATCH] qemu-common: Add definition for O_NONBLOCK Paolo Bonzini
2012-11-18 10:41   ` Stefan Weil
2012-12-03 12:52     ` Stefan Hajnoczi

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=1353170443-18168-1-git-send-email-sw@weilnetz.de \
    --to=sw@weilnetz.de \
    --cc=aliguori@us.ibm.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-trivial@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).