diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-03-26 16:50:24 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-03-26 16:50:48 +1100 |
commit | c81d2ae3c9a4f9b5d2291563f141bb10d64cd650 (patch) | |
tree | 24cdc8aa052e94add3cd4923b8d6ff7bf6db9885 /lib/replace/replace.c | |
parent | af807758e8d98ea53f58b2bae8f00b83074cfdec (diff) | |
download | samba-c81d2ae3c9a4f9b5d2291563f141bb10d64cd650.tar.gz samba-c81d2ae3c9a4f9b5d2291563f141bb10d64cd650.tar.bz2 samba-c81d2ae3c9a4f9b5d2291563f141bb10d64cd650.zip |
libreplace: strerror_r() is needed by heimdal on solaris8
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 |