summaryrefslogtreecommitdiff
path: root/bsd-misc.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-07-15 14:59:14 +1000
committerDamien Miller <djm@mindrot.org>2000-07-15 14:59:14 +1000
commitecbb26d3d4490968b5c86e82c286b3d75ad8091e (patch)
tree7fdcc0ecfa9c8662533cae898dfb2fe787f182e8 /bsd-misc.c
parentbe484b5d9889ca636fecdf1f6b73ddfbe4cce3c9 (diff)
- Fixes for SunOS 4.1.4 from Gordon Atwood <gordon@cs.ualberta.ca>
- Include floatingpoint.h for entropy.c - strerror replacement
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 c22cde328..e6b529e1e 100644
--- a/bsd-misc.c
+++ b/bsd-misc.c
@@ -157,3 +157,10 @@ int seteuid(uid_t euid)
157 return(setreuid(-1,euid)); 157 return(setreuid(-1,euid));
158} 158}
159#endif /* !defined(HAVE_SETEUID) && defined(HAVE_SETREUID) */ 159#endif /* !defined(HAVE_SETEUID) && defined(HAVE_SETREUID) */
160
161#if !defined(HAVE_STRERROR) && defined(HAVE_SYS_ERRLIST)
162const char *strerror(void)
163{
164 return(sys_errlist[errno]);
165}
166#endif /* !defined(HAVE_STRERROR) && defined(HAVE_SYS_ERRLIST) */