mirror of
https://github.com/irssi/irssi.git
synced 2025-02-02 15:08:01 -05:00
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
This commit is contained in:
parent
85d0af725c
commit
dd6f49543d
@ -23,18 +23,6 @@
|
|||||||
#include "popt.h"
|
#include "popt.h"
|
||||||
#include "poptint.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) {
|
void poptSetExecPath(poptContext con, const char * path, int allowAbsolute) {
|
||||||
if (con->execPath) free(con->execPath);
|
if (con->execPath) free(con->execPath);
|
||||||
con->execPath = strdup(path);
|
con->execPath = strdup(path);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user