qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH 05/67] migration: drop an unused include, add a used


From: Michael S. Tsirkin
Subject: [Qemu-devel] [PATCH 05/67] migration: drop an unused include, add a used one
Date: Thu, 3 May 2018 22:50:27 +0300

we just need a struct name, let's add a forward
declaration instead of an include.

We also use size_t, so add stddef.h

Signed-off-by: Michael S. Tsirkin <address@hidden>
---
 include/migration/vmstate.h | 4 +++-
 migration/savevm.c          | 1 +
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/include/migration/vmstate.h b/include/migration/vmstate.h
index df463fd..5103f15 100644
--- a/include/migration/vmstate.h
+++ b/include/migration/vmstate.h
@@ -27,7 +27,9 @@
 #ifndef QEMU_VMSTATE_H
 #define QEMU_VMSTATE_H
 
-#include "migration/qjson.h"
+#include <stddef.h>
+
+typedef struct QJSON QJSON;
 
 typedef struct VMStateInfo VMStateInfo;
 typedef struct VMStateDescription VMStateDescription;
diff --git a/migration/savevm.c b/migration/savevm.c
index e2be02a..532e22e 100644
--- a/migration/savevm.c
+++ b/migration/savevm.c
@@ -55,6 +55,7 @@
 #include "io/channel-buffer.h"
 #include "io/channel-file.h"
 #include "sysemu/replay.h"
+#include "qjson.h"
 
 #ifndef ETH_P_RARP
 #define ETH_P_RARP 0x8035
-- 
MST




reply via email to

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