diff options
author | joerg <joerg@pkgsrc.org> | 2007-06-12 14:48:33 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2007-06-12 14:48:33 +0000 |
commit | 8cb9901684f2ab94d31777733517243824257f31 (patch) | |
tree | 5a1a66e8e192dda901579a641986f5d4483c382c /devel | |
parent | ca55f33ab3fa63dd57f776943e590f6f18ab6302 (diff) | |
download | pkgsrc-8cb9901684f2ab94d31777733517243824257f31.tar.gz |
Fallback to strtod on DragonFly. Limit it until the 2.0 release for now.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/sparse/distinfo | 3 | ||||
-rw-r--r-- | devel/sparse/patches/patch-ab | 19 |
2 files changed, 21 insertions, 1 deletions
diff --git a/devel/sparse/distinfo b/devel/sparse/distinfo index 13e96b350ab..60ea422b8b2 100644 --- a/devel/sparse/distinfo +++ b/devel/sparse/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.1.1.1 2007/05/21 20:46:43 reed Exp $ +$NetBSD: distinfo,v 1.2 2007/06/12 14:48:33 joerg Exp $ SHA1 (sparse-0.3.tar.gz) = 1d868b29234176abd5f3f5463aad1f11d5268dc2 RMD160 (sparse-0.3.tar.gz) = 36bb7e5611f56c5b222f33a0853e8315af406704 Size (sparse-0.3.tar.gz) = 177462 bytes SHA1 (patch-aa) = 234aa80cdd04835b9a8b2bfe4e41b0c7a1f07ff2 +SHA1 (patch-ab) = 4240f8ff570592da6d838815edcb6a7976f23a07 diff --git a/devel/sparse/patches/patch-ab b/devel/sparse/patches/patch-ab new file mode 100644 index 00000000000..71ea48cada4 --- /dev/null +++ b/devel/sparse/patches/patch-ab @@ -0,0 +1,19 @@ +$NetBSD: patch-ab,v 1.1 2007/06/12 14:48:33 joerg Exp $ + +--- compat/strtold.c.orig 2007-06-12 14:35:09.000000000 +0000 ++++ compat/strtold.c +@@ -1,6 +1,14 @@ ++#if defined(__DragonFly__) ++#include <sys/param.h> ++#endif ++ + #include <stdlib.h> + + long double string_to_ld(const char *nptr, char **endptr) + { ++#if defined(__DragonFly__) && __DragonFly_version < 200000 ++ return strtod(nptr, endptr); ++#else + return strtold(nptr, endptr); ++#endif + } |