qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Fix qemu_eventfd compile when !CONFIG_EVENTFD
@ 2010-02-23  9:16 Paolo Bonzini
  2010-02-23 17:46 ` Blue Swirl
  0 siblings, 1 reply; 2+ messages in thread
From: Paolo Bonzini @ 2010-02-23  9:16 UTC (permalink / raw)
  To: qemu-devel; +Cc: Avi Kivity

From: Avi Kivity <avi@redhat.com>

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 osdep.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/osdep.c b/osdep.c
index 3bab79a..4d39f2c 100644
--- a/osdep.c
+++ b/osdep.c
@@ -293,9 +293,9 @@ ssize_t qemu_write_full(int fd, const void *buf, size_t count)
  */
 int qemu_eventfd(int fds[2])
 {
+#ifdef CONFIG_EVENTFD
     int ret;
 
-#ifdef CONFIG_EVENTFD
     ret = eventfd(0, 0);
     if (ret >= 0) {
         fds[0] = ret;
-- 
1.6.6

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [PATCH] Fix qemu_eventfd compile when !CONFIG_EVENTFD
  2010-02-23  9:16 [Qemu-devel] [PATCH] Fix qemu_eventfd compile when !CONFIG_EVENTFD Paolo Bonzini
@ 2010-02-23 17:46 ` Blue Swirl
  0 siblings, 0 replies; 2+ messages in thread
From: Blue Swirl @ 2010-02-23 17:46 UTC (permalink / raw)
  To: Paolo Bonzini; +Cc: qemu-devel, Avi Kivity

Thanks, applied.

On 2/23/10, Paolo Bonzini <pbonzini@redhat.com> wrote:
> From: Avi Kivity <avi@redhat.com>
>
>  Signed-off-by: Avi Kivity <avi@redhat.com>
>  Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
>  ---
>   osdep.c |    2 +-
>   1 files changed, 1 insertions(+), 1 deletions(-)
>
>  diff --git a/osdep.c b/osdep.c
>  index 3bab79a..4d39f2c 100644
>  --- a/osdep.c
>  +++ b/osdep.c
>  @@ -293,9 +293,9 @@ ssize_t qemu_write_full(int fd, const void *buf, size_t count)
>   */
>   int qemu_eventfd(int fds[2])
>   {
>  +#ifdef CONFIG_EVENTFD
>      int ret;
>
>  -#ifdef CONFIG_EVENTFD
>      ret = eventfd(0, 0);
>      if (ret >= 0) {
>          fds[0] = ret;
>
> --
>  1.6.6
>
>
>
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-02-23 17:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-23  9:16 [Qemu-devel] [PATCH] Fix qemu_eventfd compile when !CONFIG_EVENTFD Paolo Bonzini
2010-02-23 17:46 ` Blue Swirl

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).