mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
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>
This commit is contained in:
parent
317b7e67db
commit
ee682d27a5
2 changed files with 38 additions and 2 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue