diff options
Diffstat (limited to 'lib/replace/replace.c')
-rw-r--r-- | lib/replace/replace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/replace/replace.c b/lib/replace/replace.c index 7ee5f4bc1e..f37d69f365 100644 --- a/lib/replace/replace.c +++ b/lib/replace/replace.c @@ -785,7 +785,7 @@ char *rep_get_current_dir_name(void) } #endif -#if !defined(HAVE_STRERROR_R) || !defined(STRERROR_R_PROTO_COMPATIBLE) +#if !defined(HAVE_STRERROR_R) && !defined(strerror_r) int rep_strerror_r(int errnum, char *buf, size_t buflen) { char *s = strerror(errnum); |