[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 3/4] update-linux-headers.sh: Fake types.h doesn't n
From: |
Peter Maydell |
Subject: |
[Qemu-devel] [PATCH 3/4] update-linux-headers.sh: Fake types.h doesn't need to include anything |
Date: |
Tue, 23 Feb 2016 14:18:31 +0000 |
We have a fake linux/types.h which we create in update-linux-headers.h.
Now that every QEMU source file includes osdep.h, this fake header
doesn't need to include anything at all.
Signed-off-by: Peter Maydell <address@hidden>
---
scripts/update-linux-headers.sh | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/scripts/update-linux-headers.sh b/scripts/update-linux-headers.sh
index ff5b0c7..0623eb4 100755
--- a/scripts/update-linux-headers.sh
+++ b/scripts/update-linux-headers.sh
@@ -136,8 +136,9 @@ for i in "$tmpdir"/include/linux/*virtio*.h
"$tmpdir/include/linux/input.h" \
done
cat <<EOF >$output/include/standard-headers/linux/types.h
-#include <stdint.h>
-#include "qemu/compiler.h"
+/* For QEMU all types are already defined via osdep.h, so this
+ * header does not need to do anything.
+ */
EOF
cat <<EOF >$output/include/standard-headers/linux/if_ether.h
#define ETH_ALEN 6
--
1.9.1