]> xenbits.xensource.com Git - people/aperard/qemu-dm.git/commitdiff
qapi/qmp-registry.c: Include headers it needs
authorEduardo Habkost <ehabkost@redhat.com>
Tue, 23 Oct 2012 23:35:44 +0000 (21:35 -0200)
committerAnthony PERARD <anthony.perard@citrix.com>
Fri, 12 Jul 2013 13:55:47 +0000 (14:55 +0100)
Include:
- <glib.h> for g_malloc0()
- <string.h> for strcmp()

Some of those headers were probably being included by accident because
some other headers were including qemu-common.h, but those headers
should eventually stop including qemu-common.h.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
(cherry picked from commit ccff63cac4f0d391187c9ee9aa2cab754df80c41)

qapi/qmp-registry.c

index 54146133772d9483d6d64d07136ca75211d17b70..c2c31b420d4b3a31ccc8b40f90857faeb400d62c 100644 (file)
@@ -12,6 +12,8 @@
  *
  */
 
+#include <glib.h>
+#include <string.h>
 #include "qapi/qmp-core.h"
 
 static QTAILQ_HEAD(QmpCommandList, QmpCommand) qmp_commands =