summaryrefslogtreecommitdiff
path: root/block/raw-posix.c
diff options
context:
space:
mode:
authorAndreas Tobler <andreast@FreeBSD.org>2013-10-31 22:41:46 +0100
committerStefan Hajnoczi <stefanha@redhat.com>2013-11-07 13:53:30 +0100
commit511018e4b49a5f0f1c7b051bb79fe8eccbb590fe (patch)
treed5dd90f9206a953aa34c86c576500c09a6c9bc1a /block/raw-posix.c
parent64815e2a966f0a3f18818b9d542f1ef02dc992a2 (diff)
downloadqemu-511018e4b49a5f0f1c7b051bb79fe8eccbb590fe.tar.gz
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 <andreast@FreeBSD.org> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'block/raw-posix.c')
-rw-r--r--block/raw-posix.c3
1 files changed, 2 insertions, 1 deletions
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;