From dc3100cf0787664d53fe5fcb9877d667a102f4a4 Mon Sep 17 00:00:00 2001 From: fhajny Date: Mon, 12 Mar 2012 09:46:06 +0000 Subject: Fix broken patch file. --- geography/geos/distinfo | 4 ++-- .../geos/patches/patch-include-geos-platform.h.in | 19 ++++++++++--------- 2 files changed, 12 insertions(+), 11 deletions(-) (limited to 'geography') diff --git a/geography/geos/distinfo b/geography/geos/distinfo index 2e049955a1f..22cf1077de6 100644 --- a/geography/geos/distinfo +++ b/geography/geos/distinfo @@ -1,7 +1,7 @@ -$NetBSD: distinfo,v 1.15 2012/03/09 14:46:12 fhajny Exp $ +$NetBSD: distinfo,v 1.16 2012/03/12 09:46:06 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) = a63ca499e2a8b63c6286523798e5934209c373c8 +SHA1 (patch-include-geos-platform.h.in) = 92bd5fc2421650ce4853dce85d8d2e6509aa64e9 diff --git a/geography/geos/patches/patch-include-geos-platform.h.in b/geography/geos/patches/patch-include-geos-platform.h.in index 413dc2e9339..9fb85d66142 100644 --- a/geography/geos/patches/patch-include-geos-platform.h.in +++ b/geography/geos/patches/patch-include-geos-platform.h.in @@ -1,19 +1,20 @@ -$NetBSD: patch-include-geos-platform.h.in,v 1.3 2012/03/09 14:46:12 fhajny Exp $ +$NetBSD: patch-include-geos-platform.h.in,v 1.4 2012/03/12 09:46:06 fhajny Exp $ ---- include/geos/platform.h.in.orig 2011-05-18 19:59:50.000000000 +0000 +Fix isnan definition on NetBSD, DragonFly and SunOS platforms. +--- include/geos/platform.h.in.orig 2011-09-17 15:42:58.000000000 +0000 +++ include/geos/platform.h.in -@@ -91,10 +91,13 @@ extern "C" +@@ -91,11 +91,12 @@ extern "C" # elif defined(__MINGW32__) // sandro furieri: sanitizing MinGW32 # define ISNAN(x) (std::isnan(x)) -# elif defined(__OSX__) || defined(__APPLE__) -+# elif defined(__OSX__) || defined(__APPLE__) || defined(__NetBSD__) || defined(__DragonFly__) ++# elif defined(__OSX__) || defined(__APPLE__) || defined(__NetBSD__) || defined(__DragonFly__) || \ ++ (defined(__sun) && defined(__GNUC__)) // Hack for OS/X incorrectly re-defining isnan() into oblivion. // It does leave a version in std. # define ISNAN(x) (std::isnan(x)) -+# elif defined(__sun) -+# include -+# define ISNAN(x) (std::isnan(x)) +-# elif defined(__sun) || defined(__sun__) ++# elif (defined(__sun) || defined(__sun__)) && defined(__SUNPRO_CC) + # include + # define ISNAN(x) (::isnan(x)) # endif - #endif - -- cgit v1.2.3