From 69847c3ea214a7a0eb6971c801f2741016b0fd24 Mon Sep 17 00:00:00 2001 From: gbeauche <> Date: Thu, 27 Jun 2002 14:28:59 +0000 Subject: [PATCH] Correctly guard FreeBSD bits --- BasiliskII/src/Unix/sigsegv.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/BasiliskII/src/Unix/sigsegv.cpp b/BasiliskII/src/Unix/sigsegv.cpp index 42bbbe1d..38f879fd 100644 --- a/BasiliskII/src/Unix/sigsegv.cpp +++ b/BasiliskII/src/Unix/sigsegv.cpp @@ -215,6 +215,7 @@ static void powerpc_decode_instruction(instruction_t *instruction, unsigned int #endif #define SIGSEGV_FAULT_HANDLER_ARGLIST int sig, siginfo_t *sip, void *scp #define SIGSEGV_FAULT_ADDRESS sip->si_addr +#if defined(__NetBSD__) || defined(__FreeBSD__) #if (defined(i386) || defined(__i386__)) #define SIGSEGV_FAULT_INSTRUCTION (((struct sigcontext *)scp)->sc_eip) #define SIGSEGV_REGISTER_FILE ((unsigned int *)&(((struct sigcontext *)scp)->sc_edi)) /* EDI is the first GPR (even below EIP) in sigcontext */ @@ -223,6 +224,7 @@ static void powerpc_decode_instruction(instruction_t *instruction, unsigned int #define SIGSEGV_SKIP_INSTRUCTION ix86_skip_instruction */ #endif +#endif #if defined(__linux__) #if (defined(i386) || defined(__i386__)) #include