Merge pull request #1743 from mattsta/cygwin-compile-fix
Cygwin compile fix
This commit is contained in:
commit
08c7363647
@ -41,6 +41,12 @@
|
|||||||
#include "bio.h"
|
#include "bio.h"
|
||||||
#endif /* HAVE_BACKTRACE */
|
#endif /* HAVE_BACKTRACE */
|
||||||
|
|
||||||
|
#ifdef __CYGWIN__
|
||||||
|
#ifndef SA_ONSTACK
|
||||||
|
#define SA_ONSTACK 0x08000000
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/* ================================= Debugging ============================== */
|
/* ================================= Debugging ============================== */
|
||||||
|
|
||||||
/* Compute the sha1 of string at 's' with 'len' bytes long.
|
/* Compute the sha1 of string at 's' with 'len' bytes long.
|
||||||
|
@ -32,6 +32,10 @@
|
|||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
|
#ifdef __CYGWIN__
|
||||||
|
#define strtold(a,b) ((long double)strtod((a),(b)))
|
||||||
|
#endif
|
||||||
|
|
||||||
robj *createObject(int type, void *ptr) {
|
robj *createObject(int type, void *ptr) {
|
||||||
robj *o = zmalloc(sizeof(*o));
|
robj *o = zmalloc(sizeof(*o));
|
||||||
o->type = type;
|
o->type = type;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user