[postgis-tickets] r15510 - Solaris build issues due to missing isfinite define

Regina Obe lr at pcorp.us
Thu Jul 27 12:19:22 PDT 2017


Author: robe
Date: 2017-07-27 12:19:22 -0700 (Thu, 27 Jul 2017)
New Revision: 15510

Modified:
   trunk/postgis/gserialized_estimate.c
Log:
Solaris build issues due to missing isfinite define
Patch from Julian Schauder 
References #3795 for PostGIS 2.4 (trunk)

Modified: trunk/postgis/gserialized_estimate.c
===================================================================
--- trunk/postgis/gserialized_estimate.c	2017-07-27 17:45:39 UTC (rev 15509)
+++ trunk/postgis/gserialized_estimate.c	2017-07-27 19:19:22 UTC (rev 15510)
@@ -93,6 +93,16 @@
 #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);



More information about the postgis-tickets mailing list