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 */
 
_______________________________________________
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel

Reply via email to