]> xenbits.xensource.com Git - qemu-upstream-4.5-testing.git/commitdiff
block/raw-posix: fix FreeBSD compilation
authorAndreas Tobler <andreast@FreeBSD.org>
Thu, 31 Oct 2013 21:41:46 +0000 (22:41 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Thu, 7 Nov 2013 12:53:30 +0000 (13:53 +0100)
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>
block/raw-posix.c

index f6d48bbdb2d685074d547e6a28493c7f4519f9a2..ace5d962e8eb77206b69b898e7f87e748676a688 100644 (file)
@@ -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;