Fix aio_init on non-glibc
PATCH 1/1 Fix aio_init on non-glibc
It seems aio_init() is only available on glibc and Irix. This should fix compilation on other platforms.
-- Heikki Lindholm
block-raw.c renamed from block-raw.c.old +2 -0
@@ -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 */