Patchwork Do not include compatfd for WIN32

login
register
mail settings
Submitter Jan Kiszka
Date June 23, 2011, 8:15 a.m.
Message ID <4E02F63B.7050701@web.de>
Download mbox | patch
Permalink /patch/101599/
State New
Headers show

Comments

Jan Kiszka - June 23, 2011, 8:15 a.m.
From: Jan Kiszka <jan.kiszka@siemens.com>

sigset_t, used by that header, is not available in mingw32 environments.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 cpus.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
Stefan Hajnoczi - June 23, 2011, 1:34 p.m.
On Thu, Jun 23, 2011 at 10:15:55AM +0200, Jan Kiszka wrote:
> From: Jan Kiszka <jan.kiszka@siemens.com>
> 
> sigset_t, used by that header, is not available in mingw32 environments.
> 
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
> ---
>  cpus.c |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)

Thanks, applied to the trivial patches tree:
http://repo.or.cz/w/qemu/stefanha.git/shortlog/refs/heads/trivial-patches

Stefan

Patch

diff --git a/cpus.c b/cpus.c
index 322295c..600f8f5 100644
--- a/cpus.c
+++ b/cpus.c
@@ -34,7 +34,10 @@ 
 
 #include "qemu-thread.h"
 #include "cpus.h"
+
+#ifndef _WIN32
 #include "compatfd.h"
+#endif
 
 #ifdef SIGRTMIN
 #define SIG_IPI (SIGRTMIN+4)