summaryrefslogtreecommitdiff
path: root/ext/DB_File
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2008-01-07 00:20:33 +0000
committerYves Orton <demerphq@gmail.com>2008-01-07 00:20:33 +0000
commita5d81eb5c72c6ae2575e817ef85e223d6d016dcb (patch)
tree8e21ca90422b8e7f80ac409c5fbb025d6c724289 /ext/DB_File
parentf84167b37281b9fdf1ae6a39e5b09c601c781ffa (diff)
downloadperl-a5d81eb5c72c6ae2575e817ef85e223d6d016dcb.tar.gz
dev version numbers, xs and warnings dont play together nicely, so use MM->parse_version() to smooth over the cracks....
p4raw-id: //depot/perl@32884
Diffstat (limited to 'ext/DB_File')
-rw-r--r--ext/DB_File/DB_File.pm2
-rw-r--r--ext/DB_File/Makefile.PL1
2 files changed, 2 insertions, 1 deletions
diff --git a/ext/DB_File/DB_File.pm b/ext/DB_File/DB_File.pm
index e8e0c005f6..7bd2b2bcdf 100644
--- a/ext/DB_File/DB_File.pm
+++ b/ext/DB_File/DB_File.pm
@@ -166,7 +166,7 @@ use Carp;
$VERSION = "1.816_2" ;
-$VERSION = eval $VERSION;
+$VERSION = eval $VERSION; # needed for dev releases
{
local $SIG{__WARN__} = sub {$splice_end_array = "@_";};
diff --git a/ext/DB_File/Makefile.PL b/ext/DB_File/Makefile.PL
index d3a595f8fd..93f3895da2 100644
--- a/ext/DB_File/Makefile.PL
+++ b/ext/DB_File/Makefile.PL
@@ -22,6 +22,7 @@ WriteMakefile(
XSPROTOARG => '-noprototypes',
DEFINE => $OS2 || "",
INC => ($^O eq "MacOS" ? "-i ::::db:include" : ""),
+ XS_VERSION => eval MM->parse_version('DB_File.pm'),
((ExtUtils::MakeMaker->VERSION() gt '6.30')
? ('LICENSE' => 'perl')
: ()