[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Re: [PATCH] Windows compile errors
From: |
Eduardo Felipe |
Subject: |
Re: [Qemu-devel] Re: [PATCH] Windows compile errors |
Date: |
Fri, 16 May 2008 12:15:46 +0200 |
2008/5/16 Alex <address@hidden>:
>
> > 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>
There's no need to explicitly typedef socklen_t, it is already done in
ws2tcpip.h:
--- slirp/slirp.h Mon May 12 19:44:40 2008
+++ slirp/slirp.h Mon May 12 19:44:05 2008
@@ -32,6 +32,7 @@
#define WIN32_LEAN_AND_MEAN
# include <windows.h>
# include <winsock2.h>
+# include <ws2tcpip.h>
# include <sys/timeb.h>
# include <iphlpapi.h>
Regards,
Edu
- [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, 2008/05/16
- 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 <=
Re: [Qemu-devel] [PATCH] Windows compile errors, Erik de Castro Lopo, 2008/05/15