From 5a61cb60d6ee8d49c553d7959363df26b55f4873 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Thu, 8 Sep 2011 17:55:32 +0200 Subject: [PATCH] Fix include statements for qemu-common.h * qemu-common.h is not a system include file, so it should be included with "" instead of <>. Otherwise incremental builds might fail because only local include files are checked for changes. * linux-user/syscall.c included the file twice. Cc: Riku Voipio Cc: Jan Kiszka Acked-by: Kevin Wolf Signed-off-by: Stefan Weil Signed-off-by: Stefan Hajnoczi --- hw/virtio-blk.c | 2 +- linux-user/syscall.c | 3 +-- nbd.h | 2 +- qemu-nbd.c | 2 +- slirp/libslirp.h | 2 +- 5 files changed, 5 insertions(+), 6 deletions(-) diff --git a/hw/virtio-blk.c b/hw/virtio-blk.c index 4df23f4228..d5d4757f62 100644 --- a/hw/virtio-blk.c +++ b/hw/virtio-blk.c @@ -11,7 +11,7 @@ * */ -#include +#include "qemu-common.h" #include "qemu-error.h" #include "trace.h" #include "blockdev.h" diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 6bdf4e6ab4..e87e17432e 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -60,7 +60,7 @@ int __clone2(int (*fn)(void *), void *child_stack_base, #include #include #include -#include +#include "qemu-common.h" #ifdef TARGET_GPROF #include #endif @@ -96,7 +96,6 @@ int __clone2(int (*fn)(void *), void *child_stack_base, #include "cpu-uname.h" #include "qemu.h" -#include "qemu-common.h" #if defined(CONFIG_USE_NPTL) #define CLONE_NPTL_FLAGS2 (CLONE_SETTLS | \ diff --git a/nbd.h b/nbd.h index 96f77fe2d1..273cfa1af4 100644 --- a/nbd.h +++ b/nbd.h @@ -21,7 +21,7 @@ #include -#include +#include "qemu-common.h" #include "block_int.h" diff --git a/qemu-nbd.c b/qemu-nbd.c index 0b25a4dd48..3a39145174 100644 --- a/qemu-nbd.c +++ b/qemu-nbd.c @@ -16,7 +16,7 @@ * along with this program; if not, see . */ -#include +#include "qemu-common.h" #include "block_int.h" #include "nbd.h" diff --git a/slirp/libslirp.h b/slirp/libslirp.h index 67c70e32e3..a7551235e2 100644 --- a/slirp/libslirp.h +++ b/slirp/libslirp.h @@ -1,7 +1,7 @@ #ifndef _LIBSLIRP_H #define _LIBSLIRP_H -#include +#include "qemu-common.h" #ifdef CONFIG_SLIRP -- 2.11.0