]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
qapi/qmp-event.c: Don't manually include os-win32.h/os-posix.h
authorPeter Maydell <peter.maydell@linaro.org>
Wed, 19 Aug 2015 15:20:19 +0000 (16:20 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Wed, 19 Aug 2015 15:29:53 +0000 (16:29 +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 <peter.maydell@linaro.org>
Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
qapi/qmp-event.c

index 0d1ce0bd18ba05e9bf4064dbd2afdc23904cc302..c0e435f994866601c96f9b19d9f3414e954ebf9d 100644 (file)
 #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)