]> granicus.if.org Git - strace/commitdiff
2003-01-23 Roland McGrath <roland@redhat.com>
authorRoland McGrath <roland@redhat.com>
Thu, 30 Jan 2003 20:15:23 +0000 (20:15 +0000)
committerRoland McGrath <roland@redhat.com>
Thu, 30 Jan 2003 20:15:23 +0000 (20:15 +0000)
* signal.c: Reorder #ifdefs so HAVE_ASM_SIGCONTEXT_H doesn't matter on
SPARC, which doesn't use the header regardless.
* util.c [LINUX && SPARC]: Do renaming kludges around <asm/reg.h>
like signal.c does.

signal.c

index ad9e616f038c972d6c206dc16dc3957634909a70..64b15682b289606b1a327adc276245b4b46ccf5e 100644 (file)
--- a/signal.c
+++ b/signal.c
 #endif /* !IA64 */
 
 #if HAVE_ASM_REG_H
-#ifdef SPARC
+# ifdef SPARC
 #  define fpq kernel_fpq
 #  define fq kernel_fq
 #  define fpu kernel_fpu
-#endif
-#include <asm/reg.h>
-#ifdef SPARC
+# endif
+# include <asm/reg.h>
+# ifdef SPARC
 #  undef fpq
 #  undef fq
 #  undef fpu
-#endif
-
+# endif
 #endif /* HAVE_ASM_REG_H */
-#ifdef HAVE_ASM_SIGCONTEXT_H
+
 #ifdef SPARC
 typedef struct {
        struct regs             si_regs;
        int                     si_mask;
 } m_siginfo_t;
-#elif !defined(IA64) && !defined(X86_64)
+#elif defined HAVE_ASM_SIGCONTEXT_H
+#if !defined(IA64) && !defined(X86_64)
 #include <asm/sigcontext.h>
-#endif /* SPARC */
+#endif /* !IA64 && !X86_64 */
 #else /* !HAVE_ASM_SIGCONTEXT_H */
 #ifdef I386
 struct sigcontext_struct {