diff options
Diffstat (limited to 'lib/replace/replace.c')
-rw-r--r-- | lib/replace/replace.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/replace/replace.c b/lib/replace/replace.c index e4b97a8913..6a325400f4 100644 --- a/lib/replace/replace.c +++ b/lib/replace/replace.c @@ -747,3 +747,11 @@ char *rep_get_current_dir_name(void) return strdup(p); } #endif + +#ifndef HAVE_STRERROR_R +char *rep_strerror_r(int errnum, char *buf, size_t buflen) +{ + strncpy(buf, strerror(errnum), buflen); + return buf; +} +#endif |