summaryrefslogtreecommitdiff
path: root/ext/GDBM_File
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2022-04-09 11:01:05 +0300
committerJames E Keenan <jkeenan@cpan.org>2022-04-10 12:47:10 +0000
commit0f875b7c4180f248f0fec87711de88c22cbc2009 (patch)
tree772a23e716d711b60373e8fd25023802f13a3af4 /ext/GDBM_File
parentda0367701cbc71b0f74bcf21c3fbead8a333b81b (diff)
downloadperl-0f875b7c4180f248f0fec87711de88c22cbc2009.tar.gz
gdbm: make sure basic error codes are always defined
* ext/GDBM_File/Makefile.PL: Don't protect basic error codes by ifdefs: they are not macros in recent versions of GDBM. Besides, they are known to exist in any GDBM version. For: https://github.com/Perl/perl5/pull/19602
Diffstat (limited to 'ext/GDBM_File')
-rw-r--r--ext/GDBM_File/Makefile.PL7
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/GDBM_File/Makefile.PL b/ext/GDBM_File/Makefile.PL
index 754416047d..c635941cac 100644
--- a/ext/GDBM_File/Makefile.PL
+++ b/ext/GDBM_File/Makefile.PL
@@ -25,7 +25,12 @@ push @names, {
GDBM_SNAPSHOT_SAME GDBM_SNAPSHOT_SUSPICIOUS);
# Basic error codes - these are supported by all versions of gdbm
-push @names, qw(
+push @names, {
+ name => $_,
+ value => "$_",
+ type => "IV",
+ macro => 1
+} foreach qw(
GDBM_NO_ERROR
GDBM_MALLOC_ERROR
GDBM_BLOCK_SIZE_ERROR