diff options
Diffstat (limited to 'backends/rng-builtin.c')
-rw-r--r-- | backends/rng-builtin.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/backends/rng-builtin.c b/backends/rng-builtin.c index ba1b8d66b8..4bf073c963 100644 --- a/backends/rng-builtin.c +++ b/backends/rng-builtin.c @@ -9,13 +9,15 @@ #include "sysemu/rng.h" #include "qemu/main-loop.h" #include "qemu/guest-random.h" +#include "qom/object.h" +typedef struct RngBuiltin RngBuiltin; #define RNG_BUILTIN(obj) OBJECT_CHECK(RngBuiltin, (obj), TYPE_RNG_BUILTIN) -typedef struct RngBuiltin { +struct RngBuiltin { RngBackend parent; QEMUBH *bh; -} RngBuiltin; +}; static void rng_builtin_receive_entropy_bh(void *opaque) { |