Skip to contentSkip to conversation

tools/kvm/9p: Always include system header before kernel headers

PATCH New Aneesh Kumar K.V 1 participant 1 message Jun 18, 2011 KVM

lore
Share & tools
lore
#0 lore raw

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

---
 tools/kvm/virtio/9p.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
tools/kvm/virtio/9p.c +4 -4
index 38a997d..730f4a1 100644
@@ -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