qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] Re: [PATCH] Windows compile errors


From: Alex
Subject: [Qemu-devel] Re: [PATCH] Windows compile errors
Date: Thu, 15 May 2008 21:38:58 -0700

> AFAIR sleep() takes seconds, while Sleep() takes milliseconds as an
> argument.
>

You are right. Perhaps this is a better patch:

Index: slirp/slirp.h
===================================================================
--- slirp/slirp.h       (revision 4462)
+++ slirp/slirp.h       (working copy)
@@ -28,6 +28,7 @@
 typedef uint32_t u_int32_t;
 typedef uint64_t u_int64_t;
 typedef char *caddr_t;
+typedef int socklen_t;

 #define WIN32_LEAN_AND_MEAN
 # include <windows.h>
Index: hw/musicpal.c
===================================================================
--- hw/musicpal.c       (revision 4462)
+++ hw/musicpal.c       (working copy)
@@ -19,6 +19,9 @@
 #include "console.h"
 #include "audio/audio.h"
 #include "i2c.h"
+#ifdef _WIN32
+#define sleep(x) (Sleep(x * 1000))
+#endif

 #define MP_ETH_BASE             0x80008000
 #define MP_ETH_SIZE             0x00001000







reply via email to

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