diff options
author | joerg <joerg> | 2011-09-21 13:15:20 +0000 |
---|---|---|
committer | joerg <joerg> | 2011-09-21 13:15:20 +0000 |
commit | 87a1d7a6e6b79e5a14796326995f9a70a1156a71 (patch) | |
tree | 9ea372bc0649c97cc777f800062a3a5a60d2eb10 /geography | |
parent | a9b60cf2815833d37b2f718e981aa21d6574bdc3 (diff) | |
download | pkgsrc-87a1d7a6e6b79e5a14796326995f9a70a1156a71.tar.gz |
Handle isnan from cmath on NetBSD like on Darwin.
XXX The comment in the code is wrong and using std::isnan is actually
XXX the portable approach. DragonFly and other GCC users likely need the
XXX same change
Diffstat (limited to 'geography')
-rw-r--r-- | geography/geos/distinfo | 3 | ||||
-rw-r--r-- | geography/geos/patches/patch-include-geos-platform.h.in | 13 |
2 files changed, 15 insertions, 1 deletions
diff --git a/geography/geos/distinfo b/geography/geos/distinfo index e4de82dc70d..a70c023a925 100644 --- a/geography/geos/distinfo +++ b/geography/geos/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.11 2011/06/16 09:24:05 adam Exp $ +$NetBSD: distinfo,v 1.12 2011/09/21 13:15:20 joerg Exp $ SHA1 (geos-3.3.0.tar.bz2) = f6c6e3398d5c7bf389a0610a0d06896d76ad4480 RMD160 (geos-3.3.0.tar.bz2) = 724f535739ec88607083b72452481b155297fd2b Size (geos-3.3.0.tar.bz2) = 1765056 bytes SHA1 (patch-ae) = b687857a95931a7f9a0dc5e1c2290db0e76f603e +SHA1 (patch-include-geos-platform.h.in) = 07f947a2d2ec3bc2419626c44b1d4a754565cedc diff --git a/geography/geos/patches/patch-include-geos-platform.h.in b/geography/geos/patches/patch-include-geos-platform.h.in new file mode 100644 index 00000000000..1738976c1ab --- /dev/null +++ b/geography/geos/patches/patch-include-geos-platform.h.in @@ -0,0 +1,13 @@ +$NetBSD: patch-include-geos-platform.h.in,v 1.1 2011/09/21 13:15:20 joerg Exp $ + +--- include/geos/platform.h.in.orig 2011-09-21 08:51:25.000000000 +0000 ++++ include/geos/platform.h.in +@@ -91,7 +91,7 @@ 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__) + // Hack for OS/X <cmath> incorrectly re-defining isnan() into oblivion. + // It does leave a version in std. + # define ISNAN(x) (std::isnan(x)) |