From 9b86a269bd3e508bb1ebe6040bdca141e0d6aee5 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Thu, 20 Jun 2013 13:13:40 -0600 Subject: [PATCH] pp_sys.c: Use macro instead of reinventing it The Strerror macro is defined properly to handle either case here. --- pp_sys.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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)) { -- 2.7.4