From dd6f49543dbe4166f299aa834a80db74fccdd8fe Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sat, 9 Oct 1999 18:56:57 +0000 Subject: [PATCH] moved the strerror() implementation if it doesn't exist git-svn-id: http://svn.irssi.org/repos/irssi/trunk@41 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/lib-popt/popt.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/lib-popt/popt.c b/src/lib-popt/popt.c index bfcc0054..cd396b3b 100644 --- a/src/lib-popt/popt.c +++ b/src/lib-popt/popt.c @@ -23,18 +23,6 @@ #include "popt.h" #include "poptint.h" -#ifndef HAVE_STRERROR -static char * strerror(int errno) { - extern int sys_nerr; - extern char * sys_errlist[]; - - if ((0 <= errno) && (errno < sys_nerr)) - return sys_errlist[errno]; - else - return POPT_("unknown errno"); -} -#endif - void poptSetExecPath(poptContext con, const char * path, int allowAbsolute) { if (con->execPath) free(con->execPath); con->execPath = strdup(path);