[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [patch] Fix FreeBSD compilation block/raw-posix.c

From: Andreas Tobler
Subject: [Qemu-devel] [patch] Fix FreeBSD compilation block/raw-posix.c
Date: Thu, 31 Oct 2013 22:41:46 +0100
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.0.1

Hi all,

the below patch is needed to compile qemu trunk on FreeBSD with gcc48,
clang will fail.... ;). Host x84_64-freebsd.

Installation will fail due to hardcoded /usr/bin/python in


Signed-off-by: Andreas Tobler <do-I-put-my-address-here?>

[neon:src/qemu/qemu-master] andreast% git diff block/raw-posix.c
diff --git a/block/raw-posix.c b/block/raw-posix.c
index f6d48bb..6038d7c 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;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]