git.samba.org
/
ira
/
wip.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
libreplace: strerror_r() is needed by heimdal on solaris8
[ira/wip.git]
/
lib
/
replace
/
replace.c
diff --git
a/lib/replace/replace.c
b/lib/replace/replace.c
index e4b97a8913e9f23511b680095e8cc0569aa137f8..6a325400f4741a21f28f018a6f54ddaaebd2583c 100644
(file)
--- 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