]> granicus.if.org Git - postgresql/commitdiff
Fix searchpath for modern Perl for genbki.pl
authorAndrew Dunstan <andrew@dunslane.net>
Tue, 5 Feb 2019 14:59:46 +0000 (09:59 -0500)
committerAndrew Dunstan <andrew@dunslane.net>
Tue, 5 Feb 2019 15:05:17 +0000 (10:05 -0500)
This was fixed for MSVC tools by commit 1df92eeafefac4, but per
buildfarm member bowerbird genbki.pl needs the same treatment.

Backpatch to all live branches.

src/backend/catalog/genbki.pl

index 54a14e5dc368ab265ac76f14b96ca508850a6fd1..acddef31cc4710ad5d9c12319ddbedf6793dcdab 100644 (file)
 #
 #----------------------------------------------------------------------
 
+use File::Basename;
+use File::Spec;
+BEGIN  { use lib File::Spec->rel2abs(dirname(__FILE__)); }
+
 use Catalog;
 
 use strict;