From: Heikki Lindholm <holindho@cs.helsinki.fi>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] Fix aio_init on non-glibc
Date: Thu, 03 Aug 2006 15:29:20 +0300 [thread overview]
Message-ID: <44D1EC20.4040909@cs.helsinki.fi> (raw)
[-- 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 */
reply other threads:[~2006-08-03 12:29 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44D1EC20.4040909@cs.helsinki.fi \
--to=holindho@cs.helsinki.fi \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.