summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--makedef.pl1
-rw-r--r--perl.h5
2 files changed, 3 insertions, 3 deletions
diff --git a/makedef.pl b/makedef.pl
index ce92ee15b3..95b4d660ad 100644
--- a/makedef.pl
+++ b/makedef.pl
@@ -247,7 +247,6 @@ unless ($define{'DEBUGGING'}) {
Perl_pad_sv
Perl_pad_setsv
Perl_hv_assert
- PL_block_type
PL_watchaddr
PL_watchok
PL_watch_pvx
diff --git a/perl.h b/perl.h
index 862f25c52b..9fc2700457 100644
--- a/perl.h
+++ b/perl.h
@@ -4600,7 +4600,9 @@ EXTCONST unsigned char PL_freq[] = { /* letter frequencies for mixed English/C *
EXTCONST unsigned char PL_freq[];
#endif
-#ifdef DEBUGGING
+/* Although only used for debugging, these constants must be available in
+ * non-debugging builds too, since they're used in ext/re/re_exec.c,
+ * which has DEBUGGING enabled always */
#ifdef DOINIT
EXTCONST char* const PL_block_type[] = {
"NULL",
@@ -4619,7 +4621,6 @@ EXTCONST char* const PL_block_type[] = {
#else
EXTCONST char* PL_block_type[];
#endif
-#endif
/* These are all the compile time options that affect binary compatibility.
Other compile time options that are binary compatible are in perl.c