Revision ee682d27 block/vdi.c
b/block/vdi.c | ||
---|---|---|
53 | 53 |
#include "block_int.h" |
54 | 54 |
#include "module.h" |
55 | 55 |
|
56 |
#if defined(HAVE_UUID_H)
|
|
56 |
#if defined(CONFIG_UUID)
|
|
57 | 57 |
#include <uuid/uuid.h> |
58 | 58 |
#else |
59 | 59 |
/* TODO: move uuid emulation to some central place in QEMU. */ |
... | ... | |
116 | 116 |
/* Unallocated blocks use this index (no need to convert endianess). */ |
117 | 117 |
#define VDI_UNALLOCATED UINT32_MAX |
118 | 118 |
|
119 |
#if !defined(HAVE_UUID_H)
|
|
119 |
#if !defined(CONFIG_UUID)
|
|
120 | 120 |
void uuid_generate(uuid_t out) |
121 | 121 |
{ |
122 | 122 |
memset(out, 0, sizeof(out)); |
Also available in: Unified diff