[postgis-tickets] r15511 - Solaris build issues due to missing isfinite define
Regina Obe
lr at pcorp.us
Thu Jul 27 12:27:06 PDT 2017
Author: robe
Date: 2017-07-27 12:27:05 -0700 (Thu, 27 Jul 2017)
New Revision: 15511
Modified:
branches/2.3/NEWS
branches/2.3/postgis/gserialized_estimate.c
Log:
Solaris build issues due to missing isfinite define
Patch from Julian Schauder
Closes #3795 for PostGIS 2.3.4
Modified: branches/2.3/NEWS
===================================================================
--- branches/2.3/NEWS 2017-07-27 19:19:22 UTC (rev 15510)
+++ branches/2.3/NEWS 2017-07-27 19:27:05 UTC (rev 15511)
@@ -6,6 +6,8 @@
- #3782, Memory leak in lwline_from_wkb_state (Even Rouault)
- #3101, Fix buffer overflow in pgsql2shp (Sandro Santilli)
- #3786, ptarray null and heap issues on is_closed
+ - #3795, Solaris build issues due to missing isfinite define
+ (Julian Schauder)
PostGIS 2.3.3
Modified: branches/2.3/postgis/gserialized_estimate.c
===================================================================
--- branches/2.3/postgis/gserialized_estimate.c 2017-07-27 19:19:22 UTC (rev 15510)
+++ branches/2.3/postgis/gserialized_estimate.c 2017-07-27 19:27:05 UTC (rev 15511)
@@ -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