Fix build with postgresql 10.
Sponsored by: Absolight
This commit is contained in:
parent
7122893382
commit
e308c39d5f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=449023
1 changed files with 11 additions and 0 deletions
11
databases/postgresql-plruby/files/patch-extconf.rb
Normal file
11
databases/postgresql-plruby/files/patch-extconf.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- extconf.rb.orig 2017-08-31 10:56:23 UTC
|
||||
+++ extconf.rb
|
||||
@@ -122,6 +122,8 @@ 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 10/
|
||||
+ version = 100
|
||||
else
|
||||
version = 0
|
||||
end
|
Loading…
Reference in a new issue