diff options
author | bsiegert <bsiegert@pkgsrc.org> | 2014-01-01 16:08:24 +0000 |
---|---|---|
committer | bsiegert <bsiegert@pkgsrc.org> | 2014-01-01 16:08:24 +0000 |
commit | e6cca2b01fb3c3828076c1f54fe66b2ace28911c (patch) | |
tree | 84a3f9f9ef59426519ef5f72bbc582a2cab5a8fa /databases/redis | |
parent | 15bc98d1df2f45e2c4676450d1078147186a8782 (diff) | |
download | pkgsrc-e6cca2b01fb3c3828076c1f54fe66b2ace28911c.tar.gz |
Support for MirBSD. Also, no strtold.
Diffstat (limited to 'databases/redis')
-rw-r--r-- | databases/redis/distinfo | 4 | ||||
-rw-r--r-- | databases/redis/patches/patch-deps_hiredis_fmacros.h | 12 | ||||
-rw-r--r-- | databases/redis/patches/patch-src_object.c | 16 |
3 files changed, 31 insertions, 1 deletions
diff --git a/databases/redis/distinfo b/databases/redis/distinfo index 36ce468e65c..382721452b5 100644 --- a/databases/redis/distinfo +++ b/databases/redis/distinfo @@ -1,7 +1,9 @@ -$NetBSD: distinfo,v 1.4 2013/09/09 14:05:03 fhajny Exp $ +$NetBSD: distinfo,v 1.5 2014/01/01 16:08:24 bsiegert Exp $ SHA1 (redis-2.6.16.tar.gz) = f94c0f623aaa8c310f9be2a88e81716de01ce0ce RMD160 (redis-2.6.16.tar.gz) = af80991ab3bbfda9990d811ea521a367bec78eff Size (redis-2.6.16.tar.gz) = 999579 bytes SHA1 (patch-ab) = 1faa0907ec5a47fb1f4f325a3002725006477466 SHA1 (patch-ac) = 51f06c5a0724cadd19acca5f8319d652d70bb251 +SHA1 (patch-deps_hiredis_fmacros.h) = 816aba614a7b985fa74efca50ec5b18531b84c13 +SHA1 (patch-src_object.c) = 293ea7285eafadf6bb600ae38d5100b91ccba375 diff --git a/databases/redis/patches/patch-deps_hiredis_fmacros.h b/databases/redis/patches/patch-deps_hiredis_fmacros.h new file mode 100644 index 00000000000..1c0c0b57130 --- /dev/null +++ b/databases/redis/patches/patch-deps_hiredis_fmacros.h @@ -0,0 +1,12 @@ +$NetBSD: patch-deps_hiredis_fmacros.h,v 1.1 2014/01/01 16:08:24 bsiegert Exp $ + +--- deps/hiredis/fmacros.h.orig Wed Aug 28 09:36:00 2013 ++++ deps/hiredis/fmacros.h +@@ -7,6 +7,7 @@ + + #if defined(__sun__) + #define _POSIX_C_SOURCE 200112L ++#elif defined(__MirBSD__) + #elif defined(__linux__) || defined(__OpenBSD__) || defined(__NetBSD__) + #define _XOPEN_SOURCE 600 + #else diff --git a/databases/redis/patches/patch-src_object.c b/databases/redis/patches/patch-src_object.c new file mode 100644 index 00000000000..0b7cc552461 --- /dev/null +++ b/databases/redis/patches/patch-src_object.c @@ -0,0 +1,16 @@ +$NetBSD: patch-src_object.c,v 1.1 2014/01/01 16:08:24 bsiegert Exp $ + +--- src/object.c.orig Wed Aug 28 09:36:00 2013 ++++ src/object.c +@@ -450,7 +450,11 @@ int getLongDoubleFromObject(robj *o, lon + redisAssertWithInfo(NULL,o,o->type == REDIS_STRING); + if (o->encoding == REDIS_ENCODING_RAW) { + errno = 0; ++#ifdef __MirBSD__ ++ value = (long double)strtod(o->ptr, &eptr); ++#else + value = strtold(o->ptr, &eptr); ++#endif + if (isspace(((char*)o->ptr)[0]) || eptr[0] != '\0' || + errno == ERANGE || isnan(value)) + return REDIS_ERR; |