summaryrefslogtreecommitdiff
path: root/databases/postgresql-plruby/files
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2013-12-02 13:41:23 +0000
committerMathieu Arnold <mat@FreeBSD.org>2013-12-02 13:41:23 +0000
commit5d0190039d0eea21cccae5ce9d8cc4d9f27b477f (patch)
treecc3dde77ef31f152cbd3697fb673852f438e5571 /databases/postgresql-plruby/files
parentAdd STAGEDIR support. (diff)
Make the port work on postgresql > 8.4.
maintainer timeout. PR: ports/184087 Submitted by: mat
Diffstat (limited to 'databases/postgresql-plruby/files')
-rw-r--r--databases/postgresql-plruby/files/patch-bitand-bitor16
-rw-r--r--databases/postgresql-plruby/files/patch-src__plruby.h21
2 files changed, 21 insertions, 16 deletions
diff --git a/databases/postgresql-plruby/files/patch-bitand-bitor b/databases/postgresql-plruby/files/patch-bitand-bitor
deleted file mode 100644
index 469efaaa1a51..000000000000
--- a/databases/postgresql-plruby/files/patch-bitand-bitor
+++ /dev/null
@@ -1,16 +0,0 @@
---- src/conversions/bitstring/plruby_bitstring.c.orig 2011-09-12 10:59:01.000000000 +0200
-+++ src/conversions/bitstring/plruby_bitstring.c 2011-09-12 11:01:31.000000000 +0200
-@@ -195,8 +195,13 @@
- }
-
- BIT_OPERATOR(pl_bit_add, bitcat);
-+#if PG_PL_VERSION >= 91
-+BIT_OPERATOR(pl_bit_and, bit_and);
-+BIT_OPERATOR(pl_bit_or, bit_or);
-+#else
- BIT_OPERATOR(pl_bit_and, bitand);
- BIT_OPERATOR(pl_bit_or, bitor);
-+#endif
- BIT_OPERATOR(pl_bit_xor, bitxor);
-
- static VALUE
diff --git a/databases/postgresql-plruby/files/patch-src__plruby.h b/databases/postgresql-plruby/files/patch-src__plruby.h
new file mode 100644
index 000000000000..9aac16fb1ac0
--- /dev/null
+++ b/databases/postgresql-plruby/files/patch-src__plruby.h
@@ -0,0 +1,21 @@
+--- ./src/plruby.h.orig 2012-12-23 14:51:17.000000000 +0100
++++ ./src/plruby.h 2013-11-19 15:29:16.000000000 +0100
+@@ -7,6 +7,7 @@
+ #include "executor/executor.h"
+ #include "commands/trigger.h"
+ #include "utils/elog.h"
++#include "utils/rel.h"
+ #include "utils/builtins.h"
+ #include "fmgr.h"
+ #include "access/heapam.h"
+@@ -35,6 +36,10 @@
+ #include "utils/memutils.h"
+ #endif
+
++#if PG_PL_VERSION >= 93
++#include "access/htup_details.h"
++#endif
++
+ #include "package.h"
+
+ #include <ruby.h>