summaryrefslogtreecommitdiff
path: root/pp_sys.c
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2013-06-20 13:13:40 -0600
committerKarl Williamson <public@khwilliamson.com>2013-07-07 13:29:44 -0600
commit9b86a269bd3e508bb1ebe6040bdca141e0d6aee5 (patch)
tree2e2c72b898d85c326a26878243b083452cef9adf /pp_sys.c
parent01ec34b5d8c7075801bdb8ca8364cbe2027147dd (diff)
downloadperl-9b86a269bd3e508bb1ebe6040bdca141e0d6aee5.tar.gz
pp_sys.c: Use macro instead of reinventing it
The Strerror macro is defined properly to handle either case here.
Diffstat (limited to 'pp_sys.c')
-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)) {