qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 2/2] qemu-char: fix win32 build


From: Igor Mitsyanko
Subject: Re: [Qemu-devel] [PATCH 2/2] qemu-char: fix win32 build
Date: Sun, 10 Mar 2013 17:50:22 +0400
User-agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3

On 09.03.2013 13:56, Blue Swirl wrote:
96c6384776d631839a9c8fe02bf135f9ba22586c did not adjust
Win32 #ifdeffery properly, breaking build in later commits. Fix.

Signed-off-by: Blue Swirl <address@hidden>
---
  qemu-char.c |    6 ++++--
  1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/qemu-char.c b/qemu-char.c
index b82d643..04aa589 100644
--- a/qemu-char.c
+++ b/qemu-char.c
@@ -535,8 +535,6 @@ int send_all(int fd, const void *_buf, int len1)
  }
  #endif /* !_WIN32 */

-#ifndef _WIN32
-
  typedef struct IOWatchPoll
  {
      GSource *src;
@@ -634,6 +632,7 @@ static guint io_add_watch_poll(GIOChannel *channel,
      return tag;
  }

+#ifndef _WIN32
  static GIOChannel *io_channel_from_fd(int fd)
  {
      GIOChannel *chan;
@@ -649,6 +648,7 @@ static GIOChannel *io_channel_from_fd(int fd)

      return chan;
  }
+#endif

  static GIOChannel *io_channel_from_socket(int fd)
  {
@@ -699,6 +699,8 @@ static int io_channel_send_all(GIOChannel *fd, const void 
*_buf, int len1)
      return len1 - len;
  }

+#ifndef _WIN32
+
  typedef struct FDCharDriver {
      CharDriverState *chr;
      GIOChannel *fd_in, *fd_out;


This patch fixes build for me.

Tested-by: Igor Mitsyanko <address@hidden>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]