Unbreak BSD: use qemu_fdatasync instead of fdatasync

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
Blue Swirl 2009-09-12 06:19:14 +00:00
parent b2e3b6e914
commit 47faadc676

View File

@ -138,7 +138,7 @@ static size_t handle_aiocb_flush(struct qemu_paiocb *aiocb)
{ {
int ret; int ret;
ret = fdatasync(aiocb->aio_fildes); ret = qemu_fdatasync(aiocb->aio_fildes);
if (ret == -1) if (ret == -1)
return -errno; return -errno;
return 0; return 0;