aboutsummaryrefslogtreecommitdiff
path: root/util/iov.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2016-03-09 10:52:44 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2016-03-22 22:20:16 +0100
commitdaf015ef5ab7b67f4676fcbe74c57b1709f6cb70 (patch)
tree29e82f17646fa74b6810d585bb742812059a7014 /util/iov.c
parent6f061ea10f28c6cbe3ea588e84ef1f5fd27f0299 (diff)
downloadqemu-daf015ef5ab7b67f4676fcbe74c57b1709f6cb70.zip
qemu-daf015ef5ab7b67f4676fcbe74c57b1709f6cb70.tar.gz
qemu-daf015ef5ab7b67f4676fcbe74c57b1709f6cb70.tar.bz2
include/qemu/iov.h: Don't include qemu-common.h
qemu-common.h should only be included by .c files. Its file comment explains why: "No header file should depend on qemu-common.h, as this would easily lead to circular header dependencies." qemu/iov.h includes qemu-common.h for QEMUIOVector stuff. Move all that to qemu/iov.h and drop the ill-advised include. Include qemu/iov.h where the QEMUIOVector stuff is now missing. Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'util/iov.c')
-rw-r--r--util/iov.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/iov.c b/util/iov.c
index 062f4e5..b69e4b7 100644
--- a/util/iov.c
+++ b/util/iov.c
@@ -17,6 +17,7 @@
*/
#include "qemu/osdep.h"
+#include "qemu-common.h"
#include "qemu/iov.h"
#include "qemu/sockets.h"