From: Blue Swirl <blauwirbel@gmail.com>
To: Jes Sorensen <Jes.Sorensen@redhat.com>
Cc: qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH 04/11] Move generic or OS function declarations to qemu-common.h
Date: Fri, 15 Apr 2011 23:17:26 +0300 [thread overview]
Message-ID: <BANLkTinwKdJ3v6CqUhqPSxKZW1LR_TSAmg@mail.gmail.com> (raw)
In-Reply-To: <4DA4207C.3090409@redhat.com>
On Tue, Apr 12, 2011 at 12:50 PM, Jes Sorensen <Jes.Sorensen@redhat.com> wrote:
> On 04/08/11 22:45, Blue Swirl wrote:
>> Move generic or OS related function declarations and macro
>> TFR to qemu-common.h.
>>
>> While moving, also add #include <winsock2.h> to fix a
>> recent mingw32 build breakage.
>>
>> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
>> ---
>> qemu-common.h | 21 +++++++++++++++++++++
>> sysemu.h | 21 ---------------------
>> 2 files changed, 21 insertions(+), 21 deletions(-)
>>
>> diff --git a/qemu-common.h b/qemu-common.h
>> index 82e27c1..8b48a09 100644
>> --- a/qemu-common.h
>> +++ b/qemu-common.h
>> @@ -12,6 +12,7 @@
>> #endif
>>
>> #define QEMU_BUILD_BUG_ON(x) typedef char __build_bug_on__##__LINE__[(x)?-1:1];
>> +#define TFR(expr) do { if ((expr) != -1) break; } while (errno == EINTR)
>>
>> typedef struct QEMUTimer QEMUTimer;
>> typedef struct QEMUFile QEMUFile;
>> @@ -39,6 +40,16 @@ typedef struct Monitor Monitor;
>> #include <sys/time.h>
>> #include <assert.h>
>>
>> +#ifdef _WIN32
>> +#include <windows.h>
>> +#include <winsock2.h>
>> +#include "qemu-os-win32.h"
>> +#endif
>> +
>> +#ifdef CONFIG_POSIX
>> +#include "qemu-os-posix.h"
>> +#endif
>> +
>
> Nice, the more we can get out of the dreadful sysemu.h the better.
> However, please put the includes of windows.h and winsock2.h into
> qemu-os-win32.h instead.
Thanks for the comments, applied with the includes fixed.
prev parent reply other threads:[~2011-04-15 20:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-08 20:45 [Qemu-devel] [PATCH 04/11] Move generic or OS function declarations to qemu-common.h Blue Swirl
2011-04-08 21:09 ` [Qemu-devel] " Stefan Weil
2011-04-12 9:50 ` [Qemu-devel] " Jes Sorensen
2011-04-15 20:17 ` Blue Swirl [this message]
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=BANLkTinwKdJ3v6CqUhqPSxKZW1LR_TSAmg@mail.gmail.com \
--to=blauwirbel@gmail.com \
--cc=Jes.Sorensen@redhat.com \
--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).