summaryrefslogtreecommitdiffstats
path: root/bsd-misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'bsd-misc.c')
-rw-r--r--bsd-misc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/bsd-misc.c b/bsd-misc.c
index c22cde32..e6b529e1 100644
--- a/bsd-misc.c
+++ b/bsd-misc.c
@@ -157,3 +157,10 @@ int seteuid(uid_t euid)
return(setreuid(-1,euid));
}
#endif /* !defined(HAVE_SETEUID) && defined(HAVE_SETREUID) */
+
+#if !defined(HAVE_STRERROR) && defined(HAVE_SYS_ERRLIST)
+const char *strerror(void)
+{
+ return(sys_errlist[errno]);
+}
+#endif /* !defined(HAVE_STRERROR) && defined(HAVE_SYS_ERRLIST) */