diff mbox

[01/12] qapi/qmp-event.c: Don't manually include os-win32.h/os-posix.h

Message ID 1437583451-9677-2-git-send-email-peter.maydell@linaro.org
State Accepted
Commit 38e20cac669083e2e10a2a9a9602cb99ec19299e
Headers show

Commit Message

Peter Maydell July 22, 2015, 4:44 p.m. UTC
qmp-event.c already includes qemu-common.h, so manually including
os-win32.h/os-posix.h is unnecessary (and potentially fragile,
since it's duplicating the #ifdef logic that chooses which of the
two we need). Remove the unnecessary include logic.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
 qapi/qmp-event.c | 8 --------
 1 file changed, 8 deletions(-)
diff mbox

Patch

diff --git a/qapi/qmp-event.c b/qapi/qmp-event.c
index 0d1ce0b..c0e435f 100644
--- a/qapi/qmp-event.c
+++ b/qapi/qmp-event.c
@@ -18,14 +18,6 @@ 
 #include "qapi/qmp/qstring.h"
 #include "qapi/qmp/qjson.h"
 
-#ifdef _WIN32
-#include "sysemu/os-win32.h"
-#endif
-
-#ifdef CONFIG_POSIX
-#include "sysemu/os-posix.h"
-#endif
-
 static QMPEventFuncEmit qmp_emit;
 
 void qmp_event_set_func_emit(QMPEventFuncEmit emit)