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 | 9767e7bcff1f30f59d99212393371a25eb6cb14c (patch) | |
tree | c15fa0d54c58e3d91ed711c6592677a9c62e0949 /geography/geos/patches | |
parent | 8a3adcc8e8f5ba3d43bd9e3916cb6fa78655d01e (diff) | |
download | pkgsrc-9767e7bcff1f30f59d99212393371a25eb6cb14c.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.in | 12 |
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 + |