diff --git a/block-raw-posix.c b/block-raw-posix.c index b35c9d09b2..4874b8e4a4 100644 --- a/block-raw-posix.c +++ b/block-raw-posix.c @@ -1374,7 +1374,7 @@ static BlockDriverAIOCB *raw_aio_ioctl(BlockDriverState *bs, unsigned long int req, void *buf, BlockDriverCompletionFunc *cb, void *opaque) { - return -ENOTSUP; + return NULL; } #endif /* !linux && !FreeBSD */