summaryrefslogtreecommitdiff
path: root/ext/GDBM_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/GDBM_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/GDBM_File')
-rw-r--r--ext/GDBM_File/GDBM_File.pm2
-rw-r--r--ext/GDBM_File/Makefile.PL1
2 files changed, 2 insertions, 1 deletions
diff --git a/ext/GDBM_File/GDBM_File.pm b/ext/GDBM_File/GDBM_File.pm
index 32dfcfde22..db4a11a643 100644
--- a/ext/GDBM_File/GDBM_File.pm
+++ b/ext/GDBM_File/GDBM_File.pm
@@ -69,7 +69,7 @@ use XSLoader ();
);
$VERSION = "1.08_01";
-$VERSION = eval $VERSION;
+$VERSION = eval $VERSION; # Needed for dev versions
sub AUTOLOAD {
my($constname);
diff --git a/ext/GDBM_File/Makefile.PL b/ext/GDBM_File/Makefile.PL
index 5c4f2d5134..1286dcd670 100644
--- a/ext/GDBM_File/Makefile.PL
+++ b/ext/GDBM_File/Makefile.PL
@@ -7,6 +7,7 @@ WriteMakefile(
XSPROTOARG => '-noprototypes', # XXX remove later?
VERSION_FROM => 'GDBM_File.pm',
realclean => {FILES=> 'const-c.inc const-xs.inc'},
+ XS_VERSION => eval MM->parse_version('GDBM_File.pm'), #silence warnings if we are a dev release
);
WriteConstants(
NAME => 'GDBM_File',