diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2013-03-09 09:56:04 +0000 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2013-03-10 19:26:22 -0500 |
commit | 44ab9ed4f859fc6f691ba433c24d354ba93f056f (patch) | |
tree | 84149ed51646d91eb4f2dd48b7bcadf876e8d19b | |
parent | 7830cf78ac00643930503732834c00387e9e75ff (diff) | |
download | qemu-44ab9ed4f859fc6f691ba433c24d354ba93f056f.tar.gz qemu-44ab9ed4f859fc6f691ba433c24d354ba93f056f.tar.bz2 qemu-44ab9ed4f859fc6f691ba433c24d354ba93f056f.zip |
qemu-char: fix win32 build
96c6384776d631839a9c8fe02bf135f9ba22586c did not adjust
Win32 #ifdeffery properly, breaking build in later commits. Fix.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Tested-by: Igor Mitsyanko <i.mitsyanko@gmail.com>
Message-id: 0ba5565b1ed44380c57d4a5fab86e9549f581ebf.1362822910.git.blauwirbel@gmail.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r-- | qemu-char.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/qemu-char.c b/qemu-char.c index b82d6433d2..04aa589c7e 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; |