summaryrefslogtreecommitdiff
path: root/src/lib-popt/popt.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>1999-10-09 18:56:57 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>1999-10-09 18:56:57 +0000
commitdd6f49543dbe4166f299aa834a80db74fccdd8fe (patch)
tree938767ae359a42d6384e64b634b083c5728ac63a /src/lib-popt/popt.c
parent85d0af725c8eb535e0707eb3ede06a4143ec487d (diff)
downloadirssi-dd6f49543dbe4166f299aa834a80db74fccdd8fe.zip
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
Diffstat (limited to 'src/lib-popt/popt.c')
-rw-r--r--src/lib-popt/popt.c12
1 files changed, 0 insertions, 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);