]> git.proxmox.com Git - qemu.git/commit
aio / timers: fix build of test/test-aio.c on non-linux platforms
authorAlex Bligh <alex@alex.org.uk>
Thu, 29 Aug 2013 16:48:16 +0000 (17:48 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 6 Sep 2013 13:25:08 +0000 (15:25 +0200)
commita94a3fac19c37c093203e9e01c3a54e92e1dc701
tree8a348580d81e0b6bcf800c73d3e3f683de7930a1
parent68dc036488dfea170627a55e6ee3dfd7f2c2063e
aio / timers: fix build of test/test-aio.c on non-linux platforms

tests/test-aio.c used pipe2 which is Linux only. Use qemu_pipe
and qemu_set_nonblock for portabillity. Addition of O_CLOEXEC
is a harmless bonus.

Signed-off-by: Alex Bligh <alex@alex.org.uk>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
tests/test-aio.c