diff options
Diffstat (limited to 'sci-libs/geos/files/3.3.2-solaris-isnan.patch')
-rw-r--r-- | sci-libs/geos/files/3.3.2-solaris-isnan.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sci-libs/geos/files/3.3.2-solaris-isnan.patch b/sci-libs/geos/files/3.3.2-solaris-isnan.patch new file mode 100644 index 000000000000..04dc131e7df3 --- /dev/null +++ b/sci-libs/geos/files/3.3.2-solaris-isnan.patch @@ -0,0 +1,13 @@ +--- include/geos/platform.h.in ++++ include/geos/platform.h.in +@@ -97,8 +97,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 + |