summaryrefslogtreecommitdiff
path: root/ext/Storable
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2003-02-15 08:16:26 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2003-02-15 08:16:26 +0000
commita3bf621f36e93c14b1d9e7c57c2ce75d1a8b29d4 (patch)
tree5ee0fa1589fbd9f34ba3d22e63585b40e2f09336 /ext/Storable
parent3b0d546b549c81b8fd7281af083002e289e306d6 (diff)
downloadperl-a3bf621f36e93c14b1d9e7c57c2ce75d1a8b29d4.tar.gz
Make the patchlevel.h inclusion attempt pre-5.6.0-safe(r)
(problem noticed by Graham with List::Util). p4raw-id: //depot/perl@18709
Diffstat (limited to 'ext/Storable')
-rw-r--r--ext/Storable/Storable.xs9
1 files changed, 6 insertions, 3 deletions
diff --git a/ext/Storable/Storable.xs b/ext/Storable/Storable.xs
index 7cc610e733..4073f928c2 100644
--- a/ext/Storable/Storable.xs
+++ b/ext/Storable/Storable.xs
@@ -10,11 +10,14 @@
#include <EXTERN.h>
#include <perl.h>
-#include <patchlevel.h> /* Perl's one, needed since 5.6 */
+#include <XSUB.h>
+
#ifndef PERL_VERSION
-# include <could_not_find_Perl_patchlevel.h>
+# include <patchlevel.h> /* Perl's one, needed since 5.6 */
+# if !(defined(PERL_VERSION) || (SUBVERSION > 0 && defined(PATCHLEVEL)))
+# include <could_not_find_Perl_patchlevel.h>
+# endif
#endif
-#include <XSUB.h>
#ifndef NETWARE
#if 0