Define strerror() if it doesn't exist.

This commit is contained in:
Howard Chu 1999-08-29 01:56:00 +00:00
parent d75975edf8
commit 9a58202116

View File

@ -28,6 +28,11 @@
extern char *sys_errlist[];
#endif
#ifndef HAVE_STRERROR
#define strerror(err) \
(err) > -1 && (err) < sys_nerr ? sys_errlist[(err)] : "unknown"
#endif
extern char* strerror_r();
#endif /* _AC_ERRNO_H */