summaryrefslogtreecommitdiff
path: root/databases/postgresql-plruby/files
diff options
context:
space:
mode:
Diffstat (limited to 'databases/postgresql-plruby/files')
-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