Respecting inc_version_list while processing PERL_VENDORLIB_STEM
Mandalemula, Rajesh [Tue, 18 Nov 2008 14:55:03 +0000 (19:55 +0530)]
From: "Mandalemula, Rajesh" <Rajesh.Mandalemula@deshaw.com>
Message-ID: <B911686319FBAC4BA4671AF36F8DC30902CEA28A@mailhyd2.hyd.deshaw.com>

p4raw-id: //depot/perl@34902

perl.c

diff --git a/perl.c b/perl.c
index f822011..a4710e6 100644 (file)
--- a/perl.c
+++ b/perl.c
@@ -4833,7 +4833,8 @@ S_init_perllib(pTHX)
 #  endif
 #endif
 
-#ifdef PERL_VENDORLIB_STEM /* Search for version-specific dirs below here */
+#if defined(PERL_VENDORLIB_STEM) && defined(PERL_INC_VERSION_LIST)
+    /* Search for version-specific dirs below here */
     incpush(PERL_VENDORLIB_STEM, FALSE, TRUE, TRUE, TRUE);
 #endif