summarylogtreecommitdiffstats
path: root/pointcloud-1.2.0-fix-compilation-against-pg11.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pointcloud-1.2.0-fix-compilation-against-pg11.patch')
-rw-r--r--pointcloud-1.2.0-fix-compilation-against-pg11.patch54
1 files changed, 54 insertions, 0 deletions
diff --git a/pointcloud-1.2.0-fix-compilation-against-pg11.patch b/pointcloud-1.2.0-fix-compilation-against-pg11.patch
new file mode 100644
index 00000000000..38985d4c7ce
--- /dev/null
+++ b/pointcloud-1.2.0-fix-compilation-against-pg11.patch
@@ -0,0 +1,54 @@
+From 3e64c68dd4e0b9b9fdf0a74492ab49023161f6f1 Mon Sep 17 00:00:00 2001
+From: Baudouin Feildel <baudouin@feildel.fr>
+Date: Tue, 27 Nov 2018 00:14:13 +0100
+Subject: [PATCH] Fix boolean case errors when compiling againt pg11
+
+---
+ pgsql/pc_access.c | 8 ++++----
+ pgsql/pc_inout.c | 2 +-
+ 2 files changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/pgsql/pc_access.c b/pgsql/pc_access.c
+index 62599f2..3b29201 100644
+--- a/pgsql/pc_access.c
++++ b/pgsql/pc_access.c
+@@ -879,9 +879,9 @@ Datum pcpatch_intersects(PG_FUNCTION_ARGS)
+
+ if ( pc_bounds_intersects(&(serpa1->bounds), &(serpa2->bounds)) )
+ {
+- PG_RETURN_BOOL(TRUE);
++ PG_RETURN_BOOL(true);
+ }
+- PG_RETURN_BOOL(FALSE);
++ PG_RETURN_BOOL(false);
+ }
+
+ PG_FUNCTION_INFO_V1(pcpatch_size);
+@@ -939,9 +939,9 @@ PG_FUNCTION_INFO_V1(pc_lazperf_enabled);
+ Datum pc_lazperf_enabled(PG_FUNCTION_ARGS)
+ {
+ #ifdef HAVE_LAZPERF
+- PG_RETURN_BOOL(TRUE);
++ PG_RETURN_BOOL(true);
+ #else
+- PG_RETURN_BOOL(FALSE);
++ PG_RETURN_BOOL(false);
+ #endif
+ }
+
+diff --git a/pgsql/pc_inout.c b/pgsql/pc_inout.c
+index 1378a80..05223f1 100644
+--- a/pgsql/pc_inout.c
++++ b/pgsql/pc_inout.c
+@@ -171,7 +171,7 @@ Datum pcschema_is_valid(PG_FUNCTION_ARGS)
+
+ if ( !schema )
+ {
+- PG_RETURN_BOOL(FALSE);
++ PG_RETURN_BOOL(false);
+ }
+
+ valid = pc_schema_is_valid(schema);
+--
+2.19.2
+