From cab618dc451bbf79c933ce6010082b6a16be2aba Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Fri, 22 Aug 2014 14:30:31 +0000
Subject: haiku patch


diff --git a/configure.in b/configure.in
index 9522386..0b18abb 100644
--- a/configure.in
+++ b/configure.in
@@ -196,7 +196,8 @@ dnl of isnan().
 
 AC_LANG_PUSH([C++])
 AC_CACHE_CHECK([for isnan], ac_cv_isnan,
- [AC_TRY_LINK([#include <cmath>],
+ [AC_TRY_LINK([#include <cmath>
+#include <math.h>],
  [double x; int y; y = isnan(x);],
  ac_cv_isnan=yes,
  ac_cv_isnan=no
diff --git a/include/geos/platform.h.in b/include/geos/platform.h.in
index ab63929..613fa6a 100644
--- a/include/geos/platform.h.in
+++ b/include/geos/platform.h.in
@@ -92,7 +92,7 @@ extern "C"
 // sandro furieri: sanitizing MinGW32
 #  define ISNAN(x) (std::isnan(x))
 # elif defined(__OSX__) || defined(__APPLE__) || \
-       defined(__NetBSD__) || defined(__DragonFly__) ||	\
+       defined(__NetBSD__) || defined(__DragonFly__) ||	defined(__HAIKU__) || \
        (defined(__sun) && defined(__GNUC__))
    // Hack for OS/X <cmath> incorrectly re-defining isnan() into oblivion.
    // It does leave a version in std.
-- 
1.8.3.4

