[Top][All Lists]
[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
- [Qemu-devel] [PATCH] Windows compile errors, consul, 2008/05/15
- Re: [Qemu-devel] [PATCH] Windows compile errors, Johannes Schindelin, 2008/05/15
- [Qemu-devel] Re: [PATCH] Windows compile errors,
Alex <=
- Re: [Qemu-devel] Re: [PATCH] Windows compile errors, Johannes Schindelin, 2008/05/16
- [Qemu-devel] Re: Re: [PATCH] Windows compile errors, consul, 2008/05/16
- Re: [Qemu-devel] Re: Re: [PATCH] Windows compile errors, andrzej zaborowski, 2008/05/16
- [Qemu-devel] Re: [PATCH] Windows compile errors, Jan Kiszka, 2008/05/16
- [Qemu-devel] Re: [PATCH] Windows compile errors, Alex, 2008/05/16
- [Qemu-devel] Re: [PATCH] Windows compile errors, Jan Kiszka, 2008/05/17
- Re: [Qemu-devel] Re: [PATCH] Windows compile errors, Eduardo Felipe, 2008/05/16
Re: [Qemu-devel] [PATCH] Windows compile errors, Erik de Castro Lopo, 2008/05/15