summaryrefslogtreecommitdiff
path: root/databases/postgresql-plruby/files/patch-bitand-bitor
diff options
context:
space:
mode:
authorPalle Girgensohn <girgen@FreeBSD.org>2011-09-12 09:51:35 +0000
committerPalle Girgensohn <girgen@FreeBSD.org>2011-09-12 09:51:35 +0000
commit82d34a5fdfcb75b56beaf8fc93dff555549dae46 (patch)
treeaa72d43e5d48f1e5c1a05ab6392e0ea79efe865e /databases/postgresql-plruby/files/patch-bitand-bitor
parentUpdate to version 3.1 (diff)
Fix docs not beeing installed
Patch to handle PostgreSQL 9.1
Notes
Notes: svn path=/head/; revision=281658
Diffstat (limited to 'databases/postgresql-plruby/files/patch-bitand-bitor')
-rw-r--r--databases/postgresql-plruby/files/patch-bitand-bitor16
1 files changed, 16 insertions, 0 deletions
diff --git a/databases/postgresql-plruby/files/patch-bitand-bitor b/databases/postgresql-plruby/files/patch-bitand-bitor
new file mode 100644
index 000000000000..469efaaa1a51
--- /dev/null
+++ b/databases/postgresql-plruby/files/patch-bitand-bitor
@@ -0,0 +1,16 @@
+--- 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