summaryrefslogtreecommitdiff
path: root/databases/postgresql-plruby/files/patch-extconf.rb
diff options
context:
space:
mode:
Diffstat (limited to 'databases/postgresql-plruby/files/patch-extconf.rb')
-rw-r--r--databases/postgresql-plruby/files/patch-extconf.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/databases/postgresql-plruby/files/patch-extconf.rb b/databases/postgresql-plruby/files/patch-extconf.rb
index d621ced0e07a..6783678a9018 100644
--- a/databases/postgresql-plruby/files/patch-extconf.rb
+++ b/databases/postgresql-plruby/files/patch-extconf.rb
@@ -1,9 +1,11 @@
---- extconf.rb.orig 2017-08-31 10:56:23 UTC
+--- extconf.rb.orig 2017-05-28 08:47:01 UTC
+++ extconf.rb
-@@ -122,6 +122,8 @@ end
+@@ -122,6 +122,10 @@ end
case version_str = `#{pg_config} --version`
when /^PostgreSQL ([7-9])\.([0-9]{1,3})(\.[0-9]{1,3})?$/
version = 10 * $1.to_i + $2.to_i
++when /^PostgreSQL 11/
++ version = 110
+when /^PostgreSQL 10/
+ version = 100
else