]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
build: [bsd-user] Rename "syscall.h" to "target_syscall.h" in target directories
authorLluís Vilanova <vilanova@ac.upc.edu>
Mon, 1 Feb 2016 18:38:47 +0000 (19:38 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 25 Feb 2016 16:41:08 +0000 (16:41 +0000)
This fixes double-definitions in bsd-user builds when using the UST
tracing backend (which indirectly includes the system's "syscall.h").

Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
bsd-user/i386/target_syscall.h [moved from bsd-user/i386/syscall.h with 97% similarity]
bsd-user/qemu.h
bsd-user/sparc/target_syscall.h [moved from bsd-user/sparc/syscall.h with 62% similarity]
bsd-user/sparc64/target_syscall.h [moved from bsd-user/sparc64/syscall.h with 66% similarity]
bsd-user/x86_64/target_syscall.h [moved from bsd-user/x86_64/syscall.h with 97% similarity]

similarity index 97%
rename from bsd-user/i386/syscall.h
rename to bsd-user/i386/target_syscall.h
index 9b34c61bb0d514481c12aeedc6b22c97c2de4b49..82d1c58ca542be68f443e45a48f7d397f300abd4 100644 (file)
@@ -1,3 +1,6 @@
+#ifndef TARGET_SYSCALL_H
+#define TARGET_SYSCALL_H
+
 /* default linux values for the selectors */
 #define __USER_CS      (0x23)
 #define __USER_DS      (0x2B)
@@ -159,3 +162,4 @@ struct target_vm86plus_struct {
 
 #define UNAME_MACHINE "i386"
 
+#endif  /* TARGET_SYSCALL_H */
index 1b5f9983d1b4016cd6fcc1b0b058e3cfdee6f474..03b502ad37edf6df9e1d3e61382e41bc09534572 100644 (file)
@@ -35,7 +35,7 @@ enum BSDType {
 extern enum BSDType bsd_type;
 
 #include "syscall_defs.h"
-#include "syscall.h"
+#include "target_syscall.h"
 #include "target_signal.h"
 #include "exec/gdbstub.h"
 
similarity index 62%
rename from bsd-user/sparc/syscall.h
rename to bsd-user/sparc/target_syscall.h
index 5a9bb7e546983201b106d47d3c74571d21dd9c1b..c7eec6ba607f33786c565a8d30d4358f8c986fd2 100644 (file)
@@ -1,3 +1,6 @@
+#ifndef TARGET_SYSCALL_H
+#define TARGET_SYSCALL_H
+
 struct target_pt_regs {
        abi_ulong psr;
        abi_ulong pc;
@@ -7,3 +10,5 @@ struct target_pt_regs {
 };
 
 #define UNAME_MACHINE "sun4"
+
+#endif  /* TARGET_SYSCALL_H */
similarity index 66%
rename from bsd-user/sparc64/syscall.h
rename to bsd-user/sparc64/target_syscall.h
index 81a816de94a37da75145b57e7a9e626ec285ffc5..2f06100ae5ed3ac017b302e77b95724a2591c6d8 100644 (file)
@@ -1,3 +1,6 @@
+#ifndef TARGET_SYSCALL_H
+#define TARGET_SYSCALL_H
+
 struct target_pt_regs {
        abi_ulong u_regs[16];
        abi_ulong tstate;
@@ -8,3 +11,5 @@ struct target_pt_regs {
 };
 
 #define UNAME_MACHINE "sun4u"
+
+#endif  /* TARGET_SYSCALL_H */
similarity index 97%
rename from bsd-user/x86_64/syscall.h
rename to bsd-user/x86_64/target_syscall.h
index 630514a93011c090d0ec970c55f4aa6a8ef3ec77..85a97669706fcfd09bdd84b81b63602ad2bca1e9 100644 (file)
@@ -1,3 +1,6 @@
+#ifndef TARGET_SYSCALL_H
+#define TARGET_SYSCALL_H
+
 #define __USER_CS      (0x33)
 #define __USER_DS      (0x2B)
 
@@ -114,3 +117,5 @@ struct target_msqid64_ds {
 #define TARGET_ARCH_SET_FS 0x1002
 #define TARGET_ARCH_GET_FS 0x1003
 #define TARGET_ARCH_GET_GS 0x1004
+
+#endif  /* TARGET_SYSCALL_H */