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. diff --git a/src/object.c b/src/object.c index 46f1f3f8..501dcc32 100644 --- a/src/object.c +++ b/src/object.c @@ -32,6 +32,10 @@ #include #include +#ifdef __CYGWIN__ +#define strtold(a,b) ((long double)strtod((a),(b))) +#endif + robj *createObject(int type, void *ptr) { robj *o = zmalloc(sizeof(*o)); o->type = type;