qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Fix aio_init on non-glibc
@ 2006-08-03 12:29 Heikki Lindholm
  0 siblings, 0 replies; only message in thread
From: Heikki Lindholm @ 2006-08-03 12:29 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 126 bytes --]

It seems aio_init() is only available on glibc and Irix. This should fix 
compilation on other platforms.

-- Heikki Lindholm

[-- Attachment #2: qemu-aioinit.patch --]
[-- Type: text/plain, Size: 482 bytes --]

--- 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 */
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-08-03 12:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-03 12:29 [Qemu-devel] [PATCH] Fix aio_init on non-glibc Heikki Lindholm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).