Skip to content

Commit

Permalink
build: [bsd-user] Rename "syscall.h" to "target_syscall.h" in target …
Browse files Browse the repository at this point in the history
…directories

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 <[email protected]>
Reviewed-by: Peter Maydell <[email protected]>
Signed-off-by: Peter Maydell <[email protected]>
  • Loading branch information
Lluís Vilanova authored and pm215 committed Feb 25, 2016
1 parent 586fc27 commit 0c6940d
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 1 deletion.
4 changes: 4 additions & 0 deletions bsd-user/i386/syscall.h → bsd-user/i386/target_syscall.h
Original file line number Diff line number Diff line change
@@ -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)
Expand Down Expand Up @@ -159,3 +162,4 @@ struct target_vm86plus_struct {

#define UNAME_MACHINE "i386"

#endif /* TARGET_SYSCALL_H */
2 changes: 1 addition & 1 deletion bsd-user/qemu.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
5 changes: 5 additions & 0 deletions bsd-user/sparc/syscall.h → bsd-user/sparc/target_syscall.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#ifndef TARGET_SYSCALL_H
#define TARGET_SYSCALL_H

struct target_pt_regs {
abi_ulong psr;
abi_ulong pc;
Expand All @@ -7,3 +10,5 @@ struct target_pt_regs {
};

#define UNAME_MACHINE "sun4"

#endif /* TARGET_SYSCALL_H */
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#ifndef TARGET_SYSCALL_H
#define TARGET_SYSCALL_H

struct target_pt_regs {
abi_ulong u_regs[16];
abi_ulong tstate;
Expand All @@ -8,3 +11,5 @@ struct target_pt_regs {
};

#define UNAME_MACHINE "sun4u"

#endif /* TARGET_SYSCALL_H */
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#ifndef TARGET_SYSCALL_H
#define TARGET_SYSCALL_H

#define __USER_CS (0x33)
#define __USER_DS (0x2B)

Expand Down Expand Up @@ -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 */

0 comments on commit 0c6940d

Please sign in to comment.