From 11fa2cc3839b1e7fed1d85aa1158cce4d498bc58 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Wed, 16 Aug 2000 10:35:58 +1000 Subject: - (djm) Replacement for inet_ntoa for Irix (which breaks on gcc) - (djm) Fix strerror replacement for old SunOS. Based on patch from Charles Levert - (djm) Seperate arc4random into seperate file and use OpenSSL's RC4 implementation. --- bsd-misc.h | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'bsd-misc.h') diff --git a/bsd-misc.h b/bsd-misc.h index 76b4e1a7..aea285c8 100644 --- a/bsd-misc.h +++ b/bsd-misc.h @@ -32,11 +32,6 @@ #include "config.h" -#ifndef HAVE_ARC4RANDOM -unsigned int arc4random(void); -void arc4random_stir(void); -#endif /* !HAVE_ARC4RANDOM */ - #ifndef HAVE_SETPROCTITLE void setproctitle(const char *fmt, ...); #endif /* !HAVE_SETPROCTITLE */ @@ -58,8 +53,8 @@ int innetgr(const char *netgroup, const char *host, int seteuid(uid_t euid); #endif /* !defined(HAVE_SETEUID) && defined(HAVE_SETREUID) */ -#if !defined(HAVE_STRERROR) && defined(HAVE_SYS_ERRLIST) -const char *strerror(void); -#endif /* !defined(HAVE_STRERROR) && defined(HAVE_SYS_ERRLIST) */ +#if !defined(HAVE_STRERROR) && defined(HAVE_SYS_ERRLIST) && defined(HAVE_SYS_NERR) +const char *strerror(int e); +#endif #endif /* _BSD_MISC_H */ -- cgit v1.2.3