]> granicus.if.org Git - strace/commitdiff
syscall: move a sparc specific include to an arch specific file
authorDmitry V. Levin <ldv@altlinux.org>
Sun, 24 Dec 2017 18:49:26 +0000 (18:49 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sun, 24 Dec 2017 18:49:26 +0000 (18:49 +0000)
* syscall.c [SPARC64]: Do not include <asm/psrcompat.h>.
[SPARC]: Do not include <asm/psr.h>.
* linux/sparc/get_error.c: Include <asm/psr.h>.

linux/sparc/get_error.c
syscall.c

index 1b960ace73ac31e96d49e372350cd5fdb3b6a10f..b41bfb373f4172b8e7650aa6fa341e06945b71be 100644 (file)
@@ -1,3 +1,5 @@
+#include <asm/psr.h>
+
 static void
 get_error(struct tcb *tcp, const bool check_errno)
 {
index e2bfff82d0ca0a71ef616f440301031b589375bb..dfeaec17ec9b49c752ef44fb3e18327c013e72a5 100644 (file)
--- a/syscall.c
+++ b/syscall.c
 # define PTRACE_SETREGS PTRACE_SETREGS64
 #endif
 
-#if defined SPARC64
-# include <asm/psrcompat.h>
-#elif defined SPARC
-# include <asm/psr.h>
-#endif
-
 #ifndef NT_PRSTATUS
 # define NT_PRSTATUS 1
 #endif