]> granicus.if.org Git - postgis/commitdiff
Solaris build issues due to missing isfinite define
authorRegina Obe <lr@pcorp.us>
Thu, 27 Jul 2017 19:19:22 +0000 (19:19 +0000)
committerRegina Obe <lr@pcorp.us>
Thu, 27 Jul 2017 19:19:22 +0000 (19:19 +0000)
Patch from Julian Schauder
References #3795 for PostGIS 2.4 (trunk)

git-svn-id: http://svn.osgeo.org/postgis/trunk@15510 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/gserialized_estimate.c

index 5768dbdaebf976bac6f66bad1726266a034cbeb0..ea343495b0d08c974c4f68dbc6f8735c4aa6d746 100644 (file)
@@ -93,6 +93,16 @@ dimensionality cases. (2D geometry) &&& (3D column), etc.
 #include <errno.h>
 #include <ctype.h>
 
+/* Fall back to older finite() if necessary */
+#ifndef HAVE_ISFINITE
+# ifdef HAVE_GNU_ISFINITE
+#  define _GNU_SOURCE
+# else
+#  define isfinite finite
+# endif
+#endif
+
+
 /* Prototypes */
 Datum gserialized_gist_joinsel(PG_FUNCTION_ARGS);
 Datum gserialized_gist_joinsel_2d(PG_FUNCTION_ARGS);