From: Karl Williamson Date: Thu, 20 Jun 2013 19:13:40 +0000 (-0600) Subject: pp_sys.c: Use macro instead of reinventing it X-Git-Tag: upstream/5.20.0~2784 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9b86a269bd3e508bb1ebe6040bdca141e0d6aee5;p=platform%2Fupstream%2Fperl.git pp_sys.c: Use macro instead of reinventing it The Strerror macro is defined properly to handle either case here. --- diff --git a/pp_sys.c b/pp_sys.c index af415df..793de40 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)) {