summaryrefslogtreecommitdiff
path: root/block/vdi.c
diff options
context:
space:
mode:
authorStefan Weil <weil@mail.berlios.de>2009-10-01 20:10:37 +0200
committerAurelien Jarno <aurelien@aurel32.net>2009-10-04 13:24:45 +0200
commitee682d27a5f1f43e21b22dd8c55716ba48d8af0d (patch)
tree0bbe5fb5817bd874f54e4591ac7bf780e904659f /block/vdi.c
parent317b7e67dbeaf8e59c5ed45fa37a9fe0c3d1d6b0 (diff)
downloadqemu-ee682d27a5f1f43e21b22dd8c55716ba48d8af0d.tar.gz
qemu-ee682d27a5f1f43e21b22dd8c55716ba48d8af0d.tar.bz2
qemu-ee682d27a5f1f43e21b22dd8c55716ba48d8af0d.zip
Check availability of uuid header / library
If available, the Universally Unique Identifier library is used by the vdi block driver. Other parts of QEMU (vl.c) could also use it. Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'block/vdi.c')
-rw-r--r--block/vdi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/block/vdi.c b/block/vdi.c
index f5e38dbd28..45aa81c700 100644
--- a/block/vdi.c
+++ b/block/vdi.c
@@ -53,7 +53,7 @@
#include "block_int.h"
#include "module.h"
-#if defined(HAVE_UUID_H)
+#if defined(CONFIG_UUID)
#include <uuid/uuid.h>
#else
/* TODO: move uuid emulation to some central place in QEMU. */
@@ -116,7 +116,7 @@ void uuid_unparse(const uuid_t uu, char *out);
/* Unallocated blocks use this index (no need to convert endianess). */
#define VDI_UNALLOCATED UINT32_MAX
-#if !defined(HAVE_UUID_H)
+#if !defined(CONFIG_UUID)
void uuid_generate(uuid_t out)
{
memset(out, 0, sizeof(out));