From 28fef5c57b3854d2da9c4a0f3102d047daddcf00 Mon Sep 17 00:00:00 2001 From: Matt Stancliff Date: Mon, 12 May 2014 10:56:43 -0400 Subject: [PATCH] Fix lack of SA_ONSTACK under Cygwin Fixes #232 --- src/debug.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/debug.c b/src/debug.c index d4fabb9e..1bd82b2f 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.