From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G8cKJ-0002z9-N0 for qemu-devel@nongnu.org; Thu, 03 Aug 2006 08:29:23 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G8cKI-0002yY-FG for qemu-devel@nongnu.org; Thu, 03 Aug 2006 08:29:23 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G8cKI-0002yU-9M for qemu-devel@nongnu.org; Thu, 03 Aug 2006 08:29:22 -0400 Received: from [193.229.0.41] (helo=fep01-app.kolumbus.fi) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G8cNc-0003dQ-Q3 for qemu-devel@nongnu.org; Thu, 03 Aug 2006 08:32:49 -0400 Received: from [10.0.0.4] (really [88.112.234.76]) by fep01-app.kolumbus.fi with ESMTP id <20060803122920.ROPP10406.fep01-app.kolumbus.fi@[10.0.0.4]> for ; Thu, 3 Aug 2006 15:29:20 +0300 Message-ID: <44D1EC20.4040909@cs.helsinki.fi> Date: Thu, 03 Aug 2006 15:29:20 +0300 From: Heikki Lindholm MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------070902090601050109030003" Subject: [Qemu-devel] [PATCH] Fix aio_init on non-glibc 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 This is a multi-part message in MIME format. --------------070902090601050109030003 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit It seems aio_init() is only available on glibc and Irix. This should fix compilation on other platforms. -- Heikki Lindholm --------------070902090601050109030003 Content-Type: text/plain; x-mac-type="0"; x-mac-creator="0"; name="qemu-aioinit.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="qemu-aioinit.patch" --- block-raw.c.old 2006-08-03 15:02:28.000000000 +0300 +++ block-raw.c 2006-08-03 15:02:33.000000000 +0300 @@ -232,6 +232,7 @@ act.sa_handler = aio_signal_handler; sigaction(aio_sig_num, &act, NULL); +#if defined(__GLIBC__) || defined(__irix__) { /* XXX: aio thread exit seems to hang on RH 9 */ struct aioinit ai; @@ -241,6 +242,7 @@ ai.aio_idle_time = 365 * 100000; aio_init(&ai); } +#endif } #endif /* !QEMU_TOOL */ --------------070902090601050109030003--