[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 01/12] qapi/qmp-event.c: Don't manually include os-w
From: |
Peter Maydell |
Subject: |
[Qemu-devel] [PATCH 01/12] qapi/qmp-event.c: Don't manually include os-win32.h/os-posix.h |
Date: |
Wed, 22 Jul 2015 17:44:00 +0100 |
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 <address@hidden>
---
qapi/qmp-event.c | 8 --------
1 file changed, 8 deletions(-)
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)
--
1.9.1
- [Qemu-devel] [PATCH 00/12] qemu-common.h/osdep.h refactoring, Peter Maydell, 2015/07/22
- [Qemu-devel] [PATCH 12/12] throttle.h: Don't include qemu-common.h, Peter Maydell, 2015/07/22
- [Qemu-devel] [PATCH 11/12] event_notifier.h: Don't include qemu-common.h, Peter Maydell, 2015/07/22
- [Qemu-devel] [PATCH 10/12] timer.h: Don't include qemu-common.h, Peter Maydell, 2015/07/22
- [Qemu-devel] [PATCH 01/12] qapi/qmp-event.c: Don't manually include os-win32.h/os-posix.h,
Peter Maydell <=
- [Qemu-devel] [PATCH 06/12] osdep.h: Move some OS header includes and fixups from qemu-common.h, Peter Maydell, 2015/07/22
- [Qemu-devel] [PATCH 04/12] compiler.h: Use glue() in QEMU_BUILD_BUG_ON define, Peter Maydell, 2015/07/22
- [Qemu-devel] [PATCH 09/12] apic_internal.h: Include cpu.h directly, Peter Maydell, 2015/07/22
- [Qemu-devel] [PATCH 03/12] osdep.h: Move some compiler-specific things to compiler.h, Peter Maydell, 2015/07/22
- [Qemu-devel] [PATCH 07/12] osdep.h: Add header comment, Peter Maydell, 2015/07/22