[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] Fix aio_init on non-glibc
From: |
Heikki Lindholm |
Subject: |
[Qemu-devel] [PATCH] Fix aio_init on non-glibc |
Date: |
Thu, 03 Aug 2006 15:29:20 +0300 |
User-agent: |
Mozilla Thunderbird 1.0.7 (Macintosh/20050923) |
It seems aio_init() is only available on glibc and Irix. This should fix
compilation on other platforms.
-- Heikki Lindholm
--- 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 */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [PATCH] Fix aio_init on non-glibc,
Heikki Lindholm <=