On Fri, Apr 8, 2011 at 11:14 AM, David Coppa <[email protected]> wrote:
> Hi,
>
> I'm puzzled trying to update redis to its latest version (2.2.4).
>
> How to fix the following build error?
>
> redis.c: In function 'setupSignalHandlers':
> redis.c:1662: error: 'SA_NODEFER' undeclared (first use in this function)
> redis.c:1662: error: (Each undeclared identifier is reported only once
> redis.c:1662: error: for each function it appears in.)
> redis.c:1662: error: 'SA_ONSTACK' undeclared (first use in this function)
> redis.c:1662: error: 'SA_RESETHAND' undeclared (first use in this function)

The following workaround seems to fix this build error:

$ cat patch-src_fmacros_h
$OpenBSD$
--- src/fmacros.h.orig  Fri Apr  8 12:37:59 2011
+++ src/fmacros.h       Fri Apr  8 12:38:11 2011
@@ -3,7 +3,7 @@

 #define _BSD_SOURCE

-#ifdef __linux__
+#if defined(__linux__) || defined(__OpenBSD__)
 #define _XOPEN_SOURCE 700
 #else
 #define _XOPEN_SOURCE


Cheers,
David

Reply via email to