mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
Assume strerror.
This commit is contained in:
parent
9af577566a
commit
5ebbef1dc0
10 changed files with 22 additions and 77 deletions
|
|
@ -133,10 +133,6 @@ static char *mail_spool_name (char *);
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_STRERROR
|
||||
char *strerror (int);
|
||||
#endif
|
||||
|
||||
static _Noreturn void fatal (const char *s1, const char *s2, const char *s3);
|
||||
static void error (const char *s1, const char *s2, const char *s3);
|
||||
static _Noreturn void pfatal_with_name (char *name);
|
||||
|
|
@ -920,21 +916,3 @@ mbx_delimit_end (FILE *mbf)
|
|||
}
|
||||
|
||||
#endif /* MAIL_USE_POP */
|
||||
|
||||
#ifndef HAVE_STRERROR
|
||||
char *
|
||||
strerror (errnum)
|
||||
int errnum;
|
||||
{
|
||||
extern char *sys_errlist[];
|
||||
extern int sys_nerr;
|
||||
|
||||
if (errnum >= 0 && errnum < sys_nerr)
|
||||
return sys_errlist[errnum];
|
||||
return (char *) "Unknown error";
|
||||
}
|
||||
|
||||
#endif /* ! HAVE_STRERROR */
|
||||
|
||||
|
||||
/* movemail.c ends here */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue