Import of pkgsrc-2014Q1

This commit is contained in:
2014-04-17 16:38:45 +02:00
parent 785076ae39
commit 9a8c06dafb
19365 changed files with 828089 additions and 278039 deletions

View File

@@ -0,0 +1,17 @@
$NetBSD: patch-src_object.c,v 1.2 2014/01/02 17:26:19 fhajny Exp $
Add MirBSD support.
--- 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;