diff options
author | Matt Stancliff <matt@genges.com> | 2014-05-12 10:56:43 -0400 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2014-06-09 11:43:19 +0200 |
commit | 2af2414344d2b3269f905be89b3788b2f3215676 (patch) | |
tree | 370ff8b8f2455335b000770e136a09ae14e71eac | |
parent | b4f9761d85ff222aea8b07d3cd66352e5069dd28 (diff) | |
download | redis-2af2414344d2b3269f905be89b3788b2f3215676.tar.gz |
Fix lack of SA_ONSTACK under Cygwin
Fixes #232
-rw-r--r-- | src/debug.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/debug.c b/src/debug.c index 408407895..10ef2af6f 100644 --- a/src/debug.c +++ b/src/debug.c @@ -41,6 +41,12 @@ #include "bio.h" #endif /* HAVE_BACKTRACE */ +#ifdef __CYGWIN__ +#ifndef SA_ONSTACK +#define SA_ONSTACK 0x08000000 +#endif +#endif + /* ================================= Debugging ============================== */ /* Compute the sha1 of string at 's' with 'len' bytes long. |