summaryrefslogtreecommitdiff
path: root/databases/postgresql13/patches/patch-src_pl_plperl_plperl.h
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2020-10-18 09:24:02 +0000
committeradam <adam@pkgsrc.org>2020-10-18 09:24:02 +0000
commitea5f7d2234235eb31891fbd66dff8a3d40ae07bd (patch)
treeb6fc055da0e3940fd753ba32b579400339cb83c9 /databases/postgresql13/patches/patch-src_pl_plperl_plperl.h
parent5356b71d623e6a9b52e045131f108b472bdd533a (diff)
downloadpkgsrc-ea5f7d2234235eb31891fbd66dff8a3d40ae07bd.tar.gz
postgresql13: added version 13.0
PostgreSQL 13 contains many new features and enhancements, including: * Space savings and performance gains from de-duplication of B-tree index entries * Improved performance for queries that use aggregates or partitioned tables * Better query planning when using extended statistics * Parallelized vacuuming of indexes * Incremental sorting
Diffstat (limited to 'databases/postgresql13/patches/patch-src_pl_plperl_plperl.h')
-rw-r--r--databases/postgresql13/patches/patch-src_pl_plperl_plperl.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/databases/postgresql13/patches/patch-src_pl_plperl_plperl.h b/databases/postgresql13/patches/patch-src_pl_plperl_plperl.h
new file mode 100644
index 00000000000..c3cb58e428b
--- /dev/null
+++ b/databases/postgresql13/patches/patch-src_pl_plperl_plperl.h
@@ -0,0 +1,27 @@
+$NetBSD: patch-src_pl_plperl_plperl.h,v 1.1 2020/10/18 09:24:02 adam Exp $
+
+--- src/pl/plperl/plperl.h.orig 2019-09-30 20:06:55.000000000 +0000
++++ src/pl/plperl/plperl.h
+@@ -68,6 +68,10 @@
+ #define HAS_BOOL 1
+ #endif
+
++#ifdef __sun
++#define list_head sun_list_head
++#define list_tail sun_list_tail
++#endif
+
+ /*
+ * Get the basic Perl API. We use PERL_NO_GET_CONTEXT mode so that our code
+@@ -110,6 +114,11 @@
+ #include "XSUB.h"
+ #endif
+
++#ifdef __sun
++#undef list_head
++#undef list_tail
++#endif
++
+ /* put back our *printf macros ... this must match src/include/port.h */
+ #ifdef vsnprintf
+ #undef vsnprintf