summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Stancliff <matt@genges.com>2014-05-12 10:56:43 -0400
committerantirez <antirez@gmail.com>2014-06-09 11:43:19 +0200
commit2af2414344d2b3269f905be89b3788b2f3215676 (patch)
tree370ff8b8f2455335b000770e136a09ae14e71eac
parentb4f9761d85ff222aea8b07d3cd66352e5069dd28 (diff)
downloadredis-2af2414344d2b3269f905be89b3788b2f3215676.tar.gz
Fix lack of SA_ONSTACK under Cygwin
Fixes #232
-rw-r--r--src/debug.c6
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.