Skip to content
Snippets Groups Projects
Commit 9a582021 authored by Howard Chu's avatar Howard Chu
Browse files

Define strerror() if it doesn't exist.

parent d75975ed
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment