From ecbb26d3d4490968b5c86e82c286b3d75ad8091e Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Sat, 15 Jul 2000 14:59:14 +1000 Subject: - Fixes for SunOS 4.1.4 from Gordon Atwood - Include floatingpoint.h for entropy.c - strerror replacement --- bsd-misc.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'bsd-misc.c') diff --git a/bsd-misc.c b/bsd-misc.c index c22cde328..e6b529e1e 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) */ -- cgit v1.2.3