提交 529490e5 编写于 作者: P Peter Maydell 提交者: Michael Tokarev

osdep.h: Include glib-compat.h in osdep.h rather than qemu-common.h

Our use of glib is now pervasive across QEMU. Move the include of glib-compat.h
from qemu-common.h to osdep.h so that it is more widely accessible and doesn't
get forgotten by accident. (Failure to include it will result in build failure
on old versions of glib which is likely to be unnoticed by most developers.)
Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
Signed-off-by: NMichael Tokarev <mjt@tls.msk.ru>
上级 8f32510f
......@@ -22,7 +22,6 @@
#define TFR(expr) do { if ((expr) != -1) break; } while (errno == EINTR)
#include "glib-compat.h"
#include "qemu/option.h"
#include "qemu/host-utils.h"
......
......@@ -69,6 +69,8 @@
#include "sysemu/os-posix.h"
#endif
#include "glib-compat.h"
#include "qapi/error.h"
#if defined(CONFIG_SOLARIS) && CONFIG_SOLARIS_VERSION < 10
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册