Commit 9a582021 authored by Howard Chu's avatar Howard Chu
Browse files

Define strerror() if it doesn't exist.

parent d75975ed
......@@ -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 */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment