From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H02cd-00021Z-AK for qemu-devel@nongnu.org; Thu, 28 Dec 2006 16:17:07 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H02cb-0001yg-OO for qemu-devel@nongnu.org; Thu, 28 Dec 2006 16:17:06 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H02cb-0001yd-L6 for qemu-devel@nongnu.org; Thu, 28 Dec 2006 16:17:05 -0500 Received: from [70.168.83.83] (helo=centrmmtao01.cox.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H02cb-0007Vj-9w for qemu-devel@nongnu.org; Thu, 28 Dec 2006 16:17:05 -0500 Received: from eastrmimpo01.cox.net ([68.1.16.119]) by centrmmtao01.cox.net (InterMail vM.6.01.06.03 201-2131-130-104-20060516) with ESMTP id <20061228211703.EJWX23868.centrmmtao01.cox.net@eastrmimpo01.cox.net> for ; Thu, 28 Dec 2006 16:17:03 -0500 Message-ID: <7082730.1167340621981.JavaMail.root@eastrmwml04.mgt.cox.net> Date: Thu, 28 Dec 2006 16:17:01 -0500 From: Ben Taylor MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_74229_27083467.1167340621836" Subject: [Qemu-devel] patch for block-raw.c for Solaris Reply-To: sol10x86@cox.net, 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 ------=_Part_74229_27083467.1167340621836 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit This is a patch to make block-raw.c compile correctly on Solaris. I successfully created a raw image file after the patch was applied. Ben ------=_Part_74229_27083467.1167340621836 Content-Type: text/x-patch; name=qemu-solaris-blockraw.patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=qemu-solaris-blockraw.patch diff -ruN qemu-122806/block-raw.c qemu/block-raw.c --- qemu-122806/block-raw.c 2006-12-22 09:19:53.000000000 -0500 +++ qemu/block-raw.c 2006-12-28 15:46:31.282932000 -0500 @@ -44,6 +44,8 @@ #endif #ifdef __sun__ +#define _POSIX_PTHREAD_SEMANTICS 1 +#include #include #endif #ifdef __linux__ diff -ruN qemu-122806/vl.h qemu/vl.h --- qemu-122806/vl.h 2006-12-24 12:12:43.000000000 -0500 +++ qemu/vl.h 2006-12-28 15:49:43.181801000 -0500 @@ -45,6 +45,10 @@ #define O_BINARY 0 #endif +#ifdef __sun__ +#define ENOMEDIUM 4097 +#endif + #ifdef _WIN32 #include #define fsync _commit ------=_Part_74229_27083467.1167340621836--