summaryrefslogtreecommitdiff
path: root/user/perl-dbd-pg/ppc32.patch
diff options
context:
space:
mode:
Diffstat (limited to 'user/perl-dbd-pg/ppc32.patch')
-rw-r--r--user/perl-dbd-pg/ppc32.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/user/perl-dbd-pg/ppc32.patch b/user/perl-dbd-pg/ppc32.patch
new file mode 100644
index 000000000..404796d4d
--- /dev/null
+++ b/user/perl-dbd-pg/ppc32.patch
@@ -0,0 +1,26 @@
+---
+ Pg.pm | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/Pg.pm b/Pg.pm
+index 8ca8435c..099678e1 100644
+--- a/Pg.pm
++++ b/Pg.pm
+@@ -29,14 +29,14 @@ use 5.008001;
+ PG_MAX_SMALLINT => 32767,
+ PG_MIN_INTEGER => -2147483648,
+ PG_MAX_INTEGER => 2147483647,
+- PG_MIN_BIGINT => "-9223372036854775808",
+- PG_MAX_BIGINT => "9223372036854775807",
++ PG_MIN_BIGINT => do { use bigint; -9223372036854775808 },
++ PG_MAX_BIGINT => do { use bigint; 9223372036854775807 },
+ PG_MIN_SMALLSERIAL => 1,
+ PG_MAX_SMALLSERIAL => 32767,
+ PG_MIN_SERIAL => 1,
+ PG_MAX_SERIAL => 2147483647,
+ PG_MIN_BIGSERIAL => 1,
+- PG_MAX_BIGSERIAL => "9223372036854775807",
++ PG_MAX_BIGSERIAL => do { use bigint; 9223372036854775807 },
+ };
+
+ %EXPORT_TAGS =