perl.c: Use Strerror instead of strerror
authorKarl Williamson <public@khwilliamson.com>
Thu, 20 Jun 2013 19:17:13 +0000 (13:17 -0600)
committerKarl Williamson <public@khwilliamson.com>
Sun, 7 Jul 2013 19:29:45 +0000 (13:29 -0600)
The former works on more systems.

perl.c

diff --git a/perl.c b/perl.c
index bad66f5..7ebe990 100644 (file)
--- a/perl.c
+++ b/perl.c
@@ -502,7 +502,7 @@ Perl_dump_sv_child(pTHX_ SV *sv)
     if (returned_errno || *buffer) {
        Perl_warn(aTHX_ "Debug leaking scalars child failed%s%.*s with errno"
                  " %d: %s", (*buffer ? " at " : ""), (int) *buffer, buffer + 1,
-                 returned_errno, strerror(returned_errno));
+                 returned_errno, Strerror(returned_errno));
     }
 }
 #endif
@@ -3834,7 +3834,7 @@ S_open_script(pTHX_ const char *scriptname, bool dosearch, bool *suidscript)
         && S_ISDIR(tmpstatbuf.st_mode))
         Perl_croak(aTHX_ "Can't open perl script \"%s\": %s\n",
             CopFILE(PL_curcop),
-            strerror(EISDIR));
+            Strerror(EISDIR));
 
     return rsfp;
 }