diff options
author | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-09-23 02:57:00 +0000 |
---|---|---|
committer | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-09-23 02:57:00 +0000 |
commit | 828899865fa31f3fc1c2d4c4491a1292ed70c838 (patch) | |
tree | 747568f127172135186307a713e7010c96a4cd61 /block-raw-posix.c | |
parent | Use concet TCG instructions in the MIPS target. (diff) | |
download | qemu-kvm-828899865fa31f3fc1c2d4c4491a1292ed70c838.tar.gz qemu-kvm-828899865fa31f3fc1c2d4c4491a1292ed70c838.tar.bz2 qemu-kvm-828899865fa31f3fc1c2d4c4491a1292ed70c838.zip |
Relax posix-aio restrictions on newer glibcs
RedHat 9 shipped glibc 2.3. Modern versions of glibc do not have the aio thread
exit issue that the comment references. This patch adjusts the check to only
limit aio_init on glibc versions < 2.4.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5304 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'block-raw-posix.c')
-rw-r--r-- | block-raw-posix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block-raw-posix.c b/block-raw-posix.c index 41f997686..97dd30af6 100644 --- a/block-raw-posix.c +++ b/block-raw-posix.c @@ -545,7 +545,7 @@ static int posix_aio_init(void) qemu_aio_set_fd_handler(s->fd, posix_aio_read, NULL, posix_aio_flush, s); -#if defined(__GLIBC__) && defined(__linux__) +#if defined(__linux__) && defined(__GLIBC_PREREQ) && !__GLIBC_PREREQ(2, 4) { /* XXX: aio thread exit seems to hang on RedHat 9 and this init seems to fix the problem. */ |