qemu-devel
[Top][All Lists]
Advanced

[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




reply via email to

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