summaryrefslogtreecommitdiff
path: root/geography/geos/patches
diff options
context:
space:
mode:
authorfhajny <fhajny@pkgsrc.org>2012-03-09 14:46:12 +0000
committerfhajny <fhajny@pkgsrc.org>2012-03-09 14:46:12 +0000
commitb5a1450ae93e6766ce3b99bf77950f36caa2036e (patch)
treec15fa0d54c58e3d91ed711c6592677a9c62e0949 /geography/geos/patches
parent6baa09ec56e32287c64d0946f630c65911fe952d (diff)
downloadpkgsrc-b5a1450ae93e6766ce3b99bf77950f36caa2036e.tar.gz
Fix problem with ISNAN on SunOS.
Diffstat (limited to 'geography/geos/patches')
-rw-r--r--geography/geos/patches/patch-include-geos-platform.h.in12
1 files changed, 9 insertions, 3 deletions
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
+