diff --git a/include/ac/errno.h b/include/ac/errno.h index 24cb5d0b38..a7b10eb5d8 100644 --- a/include/ac/errno.h +++ b/include/ac/errno.h @@ -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 */