Add Win32 makefile option to link all extensions statically
[p5sagit/p5-mst-13.2.git] / pp_ctl.c
index 08965bf..a09d44e 100644 (file)
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -3068,7 +3068,9 @@ PP(pp_require)
     STRLEN len;
     char * unixname;
     STRLEN unixlen;
+#ifdef VMS
     int vms_unixname = 0;
+#endif
     const char *tryname = NULL;
     SV *namesv = NULL;
     const I32 gimme = GIMME_V;
@@ -3305,7 +3307,7 @@ PP(pp_require)
                        || (*name == ':' && name[1] != ':' && strchr(name+2, ':'))
 #endif
                  ) {
-                   const char *dir = SvPV_nolen_const(dirsv);
+                   const char *dir = SvOK(dirsv) ? SvPV_nolen_const(dirsv) : "";
 #ifdef MACOS_TRADITIONAL
                    char buf1[256];
                    char buf2[256];