58 |
#include "ulib.h" |
#include "ulib.h" |
59 |
extern int errno; /* system error no */ |
extern int errno; /* system error no */ |
60 |
|
|
61 |
#ifdef DONT_HAVE_STRERROR |
#ifndef HAVE_STRERROR |
62 |
extern char *sys_errlist[]; |
extern char *sys_errlist[]; |
63 |
#endif |
#endif |
64 |
|
|
98 |
const char *fl_get_syserror_msg(void) |
const char *fl_get_syserror_msg(void) |
99 |
{ |
{ |
100 |
const char *pp; |
const char *pp; |
101 |
#ifndef DONT_HAVE_STRERROR |
#ifdef HAVE_STRERROR |
102 |
pp = errno ? strerror(errno) : ""; |
pp = errno ? strerror(errno) : ""; |
103 |
#else |
#else |
104 |
pp = errno ? sys_errlist[errno]:""; |
pp = errno ? sys_errlist[errno]:""; |