diff options
author | fhajny <fhajny@pkgsrc.org> | 2012-03-09 14:46:12 +0000 |
---|---|---|
committer | fhajny <fhajny@pkgsrc.org> | 2012-03-09 14:46:12 +0000 |
commit | b5a1450ae93e6766ce3b99bf77950f36caa2036e (patch) | |
tree | c15fa0d54c58e3d91ed711c6592677a9c62e0949 /geography | |
parent | 6baa09ec56e32287c64d0946f630c65911fe952d (diff) | |
download | pkgsrc-b5a1450ae93e6766ce3b99bf77950f36caa2036e.tar.gz |
Fix problem with ISNAN on SunOS.
Diffstat (limited to 'geography')
-rw-r--r-- | geography/geos/distinfo | 4 | ||||
-rw-r--r-- | geography/geos/patches/patch-include-geos-platform.h.in | 12 |
2 files changed, 11 insertions, 5 deletions
diff --git a/geography/geos/distinfo b/geography/geos/distinfo index 051b0901deb..2e049955a1f 100644 --- a/geography/geos/distinfo +++ b/geography/geos/distinfo @@ -1,7 +1,7 @@ -$NetBSD: distinfo,v 1.14 2012/01/08 18:37:33 gdt Exp $ +$NetBSD: distinfo,v 1.15 2012/03/09 14:46:12 fhajny Exp $ SHA1 (geos-3.3.2.tar.bz2) = 942b0bbc61a059bd5269fddd4c0b44a508670cb3 RMD160 (geos-3.3.2.tar.bz2) = 168e12e29c3d7a9408753f19397440f20d321715 Size (geos-3.3.2.tar.bz2) = 1852080 bytes SHA1 (patch-ae) = d568c8950a24b516c6fd58e401bbf19405a2d150 -SHA1 (patch-include-geos-platform.h.in) = 9a21765e0b2c40abda49d4316179d5e126169765 +SHA1 (patch-include-geos-platform.h.in) = a63ca499e2a8b63c6286523798e5934209c373c8 diff --git a/geography/geos/patches/patch-include-geos-platform.h.in b/geography/geos/patches/patch-include-geos-platform.h.in index 8b9f0b6069a..413dc2e9339 100644 --- a/geography/geos/patches/patch-include-geos-platform.h.in +++ b/geography/geos/patches/patch-include-geos-platform.h.in @@ -1,8 +1,8 @@ -$NetBSD: patch-include-geos-platform.h.in,v 1.2 2011/12/01 19:13:05 marino Exp $ +$NetBSD: patch-include-geos-platform.h.in,v 1.3 2012/03/09 14:46:12 fhajny Exp $ ---- include/geos/platform.h.in.orig 2011-09-21 08:51:25.000000000 +0000 +--- include/geos/platform.h.in.orig 2011-05-18 19:59:50.000000000 +0000 +++ include/geos/platform.h.in -@@ -91,7 +91,7 @@ extern "C" +@@ -91,10 +91,13 @@ extern "C" # elif defined(__MINGW32__) // sandro furieri: sanitizing MinGW32 # define ISNAN(x) (std::isnan(x)) @@ -11,3 +11,9 @@ $NetBSD: patch-include-geos-platform.h.in,v 1.2 2011/12/01 19:13:05 marino Exp $ // Hack for OS/X <cmath> incorrectly re-defining isnan() into oblivion. // It does leave a version in std. # define ISNAN(x) (std::isnan(x)) ++# elif defined(__sun) ++# include <cmath> ++# define ISNAN(x) (std::isnan(x)) + # endif + #endif + |