diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-11-19 23:25:45 +1100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2013-01-19 10:32:17 +0100 |
commit | dda48146a2781fe685eeb9dc5194d142ee5ca0ef (patch) | |
tree | b098ac5828b4d226227e5f286e13985d1512d0d7 /lib/replace | |
parent | d90b709ebb22fb40cbd46bdddd28d9ec1be7b0ce (diff) | |
download | samba-dda48146a2781fe685eeb9dc5194d142ee5ca0ef.tar.gz samba-dda48146a2781fe685eeb9dc5194d142ee5ca0ef.tar.bz2 samba-dda48146a2781fe685eeb9dc5194d142ee5ca0ef.zip |
heimdal_build: Try again to sort out the strerror_r mess
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'lib/replace')
-rw-r--r-- | lib/replace/replace.c | 2 | ||||
-rw-r--r-- | lib/replace/replace.h | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/replace/replace.c b/lib/replace/replace.c index 8f1315a3a5..37edb310c5 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) +#ifndef HAVE_STRERROR_R int rep_strerror_r(int errnum, char *buf, size_t buflen) { char *s = strerror(errnum); diff --git a/lib/replace/replace.h b/lib/replace/replace.h index 62172a9a12..9774da4673 100644 --- a/lib/replace/replace.h +++ b/lib/replace/replace.h @@ -570,7 +570,8 @@ ssize_t rep_pwrite(int __fd, const void *__buf, size_t __nbytes, off_t __offset) char *rep_get_current_dir_name(void); #endif -#if !defined(HAVE_STRERROR_R) && !defined(strerror_r) +#ifndef HAVE_STRERROR_R +#define strerror_r rep_strerror_r int rep_strerror_r(int errnum, char *buf, size_t buflen); #endif |