]> granicus.if.org Git - strace/commitdiff
powerpc64, sparc64: fix redefinitions of ARCH_PC_REG
authorDmitry V. Levin <ldv@altlinux.org>
Sun, 14 Aug 2016 00:03:03 +0000 (00:03 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sun, 14 Aug 2016 00:03:03 +0000 (00:03 +0000)
This fixes compilation warning that ARCH_PC_REG is redefined.

* linux/powerpc64/arch_regs.c (ARCH_PC_REG): Undefine before
the new definition.
* linux/sparc64/arch_regs.c (ARCH_PC_REG): Likewise.

linux/powerpc64/arch_regs.c
linux/sparc64/arch_regs.c

index 90646515d03b3618872c0069e721d34be8701599..c50855d9c4b7ccb8d5a2fa6dfad6708f2328f933 100644 (file)
@@ -1,2 +1,3 @@
 #include "powerpc/arch_regs.c"
+#undef ARCH_PC_REG
 #define ARCH_PC_REG ppc_regs.nip
index 072a3553484e318fc6803c0eb939fde27317929c..c1c2fae26745db54ed71858e5465e7e7cb170df7 100644 (file)
@@ -1,2 +1,3 @@
 #include "sparc/arch_regs.c"
+#undef ARCH_PC_REG
 #define ARCH_PC_REG sparc_regs.tpc