aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2012-06-07 04:02:21 +0200
committerLuiz Capitulino <lcapitulino@redhat.com>2012-06-15 10:41:05 -0300
commit37003adf96c3e4d3de08247f0199055994d881de (patch)
treefcaf3349e81ae6109934c6d24ba7c454791d9a30
parentebd063d15015d372b5ebd36cdd9fe212b0d5334d (diff)
qmp: include monitor.h when needed
This is needed to get file descriptors from SCM_RIGHTS. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
-rw-r--r--hmp.c1
-rw-r--r--net/tap.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/hmp.c b/hmp.c
index 2ce8cb9df1..b9cec1dafb 100644
--- a/hmp.c
+++ b/hmp.c
@@ -18,6 +18,7 @@
#include "qemu-option.h"
#include "qemu-timer.h"
#include "qmp-commands.h"
+#include "monitor.h"
static void hmp_handle_error(Monitor *mon, Error **errp)
{
diff --git a/net/tap.c b/net/tap.c
index 5ac4ba3343..17e91355ce 100644
--- a/net/tap.c
+++ b/net/tap.c
@@ -34,6 +34,7 @@
#include <net/if.h>
#include "net.h"
+#include "monitor.h"
#include "sysemu.h"
#include "qemu-char.h"
#include "qemu-common.h"