summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-libs/geos/files/3.4.1-solaris-isnan.patch')
-rw-r--r--sci-libs/geos/files/3.4.1-solaris-isnan.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/sci-libs/geos/files/3.4.1-solaris-isnan.patch b/sci-libs/geos/files/3.4.1-solaris-isnan.patch
new file mode 100644
index 000000000000..f4cb2aee9ad0
--- /dev/null
+++ b/sci-libs/geos/files/3.4.1-solaris-isnan.patch
@@ -0,0 +1,14 @@
+diff -Naruw geos-3.4.1.orig/include/geos/platform.h.in geos-3.4.1/include/geos/platform.h.in
+--- geos-3.4.1.orig/include/geos/platform.h.in 2013-08-17 14:08:04.000000000 +0000
++++ geos-3.4.1/include/geos/platform.h.in 2013-08-18 22:00:59.412676805 +0000
+@@ -96,8 +96,9 @@
+ // It does leave a version in std.
+ # define ISNAN(x) (std::isnan(x))
+ # elif defined(__sun) || defined(__sun__)
++# define _XOPEN_SOURCE 600 // force iso/math_c99
+ # include <math.h>
+-# define ISNAN(x) (::isnan(x))
++# define ISNAN(x) (std::isnan(x))
+ # endif
+ #endif
+