From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jwriu-0003Yo-Ey for qemu-devel@nongnu.org; Fri, 16 May 2008 00:39:16 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jwris-0003Xv-Ta for qemu-devel@nongnu.org; Fri, 16 May 2008 00:39:16 -0400 Received: from [199.232.76.173] (port=47028 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jwris-0003Xs-P7 for qemu-devel@nongnu.org; Fri, 16 May 2008 00:39:14 -0400 Received: from main.gmane.org ([80.91.229.2]:50304 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Jwris-0002jv-8e for qemu-devel@nongnu.org; Fri, 16 May 2008 00:39:14 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Jwrip-0004Be-F2 for qemu-devel@nongnu.org; Fri, 16 May 2008 04:39:11 +0000 Received: from pool-71-182-73-6.ptldor.fios.verizon.net ([71.182.73.6]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 16 May 2008 04:39:11 +0000 Received: from void by pool-71-182-73-6.ptldor.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 16 May 2008 04:39:11 +0000 From: "Alex" Date: Thu, 15 May 2008 21:38:58 -0700 Message-ID: References: Sender: news Subject: [Qemu-devel] Re: [PATCH] Windows compile errors Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org > 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 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