$OpenBSD: patch-src_fault-openbsd-m88k_h,v 1.3 2012/09/25 21:22:51 brad Exp $
--- src/fault-openbsd-m88k.h.orig	Thu Jan  7 13:01:00 2010
+++ src/fault-openbsd-m88k.h	Sun Sep  9 15:18:54 2012
@@ -17,9 +17,15 @@
 
 #include "fault-openbsd.h"
 
+#include <sys/param.h> /* defines macro OpenBSD */
+
 /* See the definition of 'struct sigcontext' in
    openbsd-src/sys/arch/m88k/include/signal.h
    and the definition of 'struct reg' in
    openbsd-src/sys/arch/m88k/include/reg.h.  */
 
-#define SIGSEGV_FAULT_STACKPOINTER  scp->sc_regs.r[31]
+#if OpenBSD >= 201211 /* OpenBSD version >= 5.2 */
+# define SIGSEGV_FAULT_STACKPOINTER scp->sc_regs[31]
+#else
+# define SIGSEGV_FAULT_STACKPOINTER scp->sc_regs.r[31]
+#endif
