summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pp_sys.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/pp_sys.c b/pp_sys.c
index af415df862..793de406b3 100644
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -3667,13 +3667,7 @@ S_dooneliner(pTHX_ const char *cmd, const char *filename)
; e++)
{
/* you don't see this */
- const char * const errmsg =
-#ifdef HAS_SYS_ERRLIST
- sys_errlist[e]
-#else
- strerror(e)
-#endif
- ;
+ const char * const errmsg = Strerror(e) ;
if (!errmsg)
break;
if (instr(s, errmsg)) {