summaryrefslogtreecommitdiffstats
path: root/lib/replace/replace.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-03-26 16:50:24 +1100
committerAndrew Tridgell <tridge@samba.org>2010-03-26 16:50:48 +1100
commitc81d2ae3c9a4f9b5d2291563f141bb10d64cd650 (patch)
tree24cdc8aa052e94add3cd4923b8d6ff7bf6db9885 /lib/replace/replace.c
parentaf807758e8d98ea53f58b2bae8f00b83074cfdec (diff)
downloadsamba-c81d2ae3c9a4f9b5d2291563f141bb10d64cd650.tar.gz
samba-c81d2ae3c9a4f9b5d2291563f141bb10d64cd650.tar.xz
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.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/replace/replace.c b/lib/replace/replace.c
index e4b97a8913e..6a325400f47 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