tools/kvm/9p: Always include system header before kernel headers
PATCH 1/1 tools/kvm/9p: Always include system header before kernel headers
Otherwise many things can break, such as mapping of stat to stat64
Signed-off-by Aneesh Kumar K.V <[email protected]>
--- tools/kvm/virtio/9p.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
tools/kvm/virtio/9p.c +4 -4
@@ -9,16 +9,16 @@#include "kvm/threadpool.h" #include "kvm/irq.h" -#include <linux/virtio_ring.h> -#include <linux/virtio_9p.h> -#include <net/9p/9p.h> -#include <fcntl.h> #include <sys/types.h> #include <sys/stat.h> #include <pthread.h> #include <dirent.h> +#include <linux/virtio_ring.h> +#include <linux/virtio_9p.h> +#include <net/9p/9p.h> +#define NUM_VIRT_QUEUES 1#define VIRTIO_P9_QUEUE_SIZE 128#define VIRTIO_P9_TAG "kvm_9p"
Signature · 1 line
1.7.4.1