$OpenBSD: patch-src_redis_c,v 1.11 2012/06/26 13:17:32 jasper Exp $
--- src/redis.c.orig	Wed May 23 11:32:58 2012
+++ src/redis.c	Mon May 28 09:16:01 2012
@@ -33,7 +33,9 @@
 
 #ifdef HAVE_BACKTRACE
 #include <execinfo.h>
+  #ifndef __OpenBSD__
 #include <ucontext.h>
+  #endif
 #endif /* HAVE_BACKTRACE */
 
 #include <time.h>
@@ -1808,7 +1811,9 @@ int main(int argc, char **argv) {
 
 #ifdef HAVE_BACKTRACE
 static void *getMcontextEip(ucontext_t *uc) {
-#if defined(__FreeBSD__)
+#if defined(__OpenBSD__)
+    return NULL;
+#elif defined(__FreeBSD__)
     return (void*) uc->uc_mcontext.mc_eip;
 #elif defined(__dietlibc__)
     return (void*) uc->uc_mcontext.eip;
@@ -1837,14 +1842,6 @@ static void *getMcontextEip(ucontext_t *uc) {
 #endif
 }
 
-void bugReportStart(void) {
-    if (server.bug_report_start == 0) {
-        redisLog(REDIS_WARNING,
-            "=== REDIS BUG REPORT START: Cut & paste starting from here ===");
-        server.bug_report_start = 1;
-    }
-}
-
 static void sigsegvHandler(int sig, siginfo_t *info, void *secret) {
     void *trace[100];
     char **messages = NULL;
@@ -1920,7 +1917,7 @@ static void sigsegvHandler(int sig, siginfo_t *info, v
 "=== REDIS BUG REPORT END. Make sure to include from START to END. ===\n\n"
 "       Please report the crash opening an issue on github:\n\n"
 "           http://github.com/antirez/redis/issues\n\n"
-"  Suspect RAM error? Use redis-server --test-memory to veryfy it.\n\n"
+"  Suspect RAM error? Use redis-server --test-memory to verify it.\n\n"
 );
     /* free(messages); Don't call free() with possibly corrupted memory. */
     if (server.daemonize) unlink(server.pidfile);
@@ -1936,6 +1933,14 @@ static void sigsegvHandler(int sig, siginfo_t *info, v
     kill(getpid(),sig);
 }
 #endif /* HAVE_BACKTRACE */
+
+void bugReportStart(void) {
+    if (server.bug_report_start == 0) {
+        redisLog(REDIS_WARNING,
+            "=== REDIS BUG REPORT START: Cut & paste starting from here ===");
+        server.bug_report_start = 1;
+    }
+}
 
 static void sigtermHandler(int sig) {
     REDIS_NOTUSED(sig);
