From: Andreas Tobler Date: Thu, 31 Oct 2013 21:41:46 +0000 (+0100) Subject: block/raw-posix: fix FreeBSD compilation X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=511018e4b49a5f0f1c7b051bb79fe8eccbb590fe;p=qemu.git block/raw-posix: fix FreeBSD compilation The below patch is needed to compile qemu trunk on FreeBSD with gcc48, clang will fail.... ;). Host x84_64-freebsd. Signed-off-by: Andreas Tobler Signed-off-by: Stefan Hajnoczi --- diff --git a/block/raw-posix.c b/block/raw-posix.c index f6d48bbdb2..ace5d962e8 100644 --- a/block/raw-posix.c +++ b/block/raw-posix.c @@ -1842,7 +1842,8 @@ static BlockDriver bdrv_host_cdrom = { #endif /* __linux__ */ #if defined (__FreeBSD__) || defined(__FreeBSD_kernel__) -static int cdrom_open(BlockDriverState *bs, QDict *options, int flags) +static int cdrom_open(BlockDriverState *bs, QDict *options, int flags, + Error **errp) { BDRVRawState *s = bs->opaque; Error *local_err = NULL;