mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-11 03:05:52 +01:00
This update includes the 0.20.3pre3 code
This commit is contained in:
@@ -27,6 +27,25 @@
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
|
||||
#if !defined(HAVE_STRERROR) && defined(BSD)
|
||||
#define HAVE_STRERROR
|
||||
char *
|
||||
strerror(int errnum)
|
||||
{
|
||||
extern int errno, sys_nerr;
|
||||
#ifndef __DECC
|
||||
extern char *sys_errlist[];
|
||||
#endif
|
||||
static char buf[] = "Unknown error 12345678901234567890";
|
||||
|
||||
if (errno < sys_nerr)
|
||||
return sys_errlist[errnum];
|
||||
|
||||
sprintf (buf, "Unknown error %d", errnum);
|
||||
return buf;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
extern char *_WINGS_progname;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user