summaryrefslogtreecommitdiff
path: root/bsd-misc.h
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-08-16 10:35:58 +1000
committerDamien Miller <djm@mindrot.org>2000-08-16 10:35:58 +1000
commit11fa2cc3839b1e7fed1d85aa1158cce4d498bc58 (patch)
treef432a585240e930f3accd4aa2ab43ad1835f8ea5 /bsd-misc.h
parent0da2eaaf06e8d05862dcce34cc8c7d1a0740de7c (diff)
- (djm) Replacement for inet_ntoa for Irix (which breaks on gcc)
- (djm) Fix strerror replacement for old SunOS. Based on patch from Charles Levert <charles@comm.polymtl.ca> - (djm) Seperate arc4random into seperate file and use OpenSSL's RC4 implementation.
Diffstat (limited to 'bsd-misc.h')
-rw-r--r--bsd-misc.h11
1 files changed, 3 insertions, 8 deletions
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 */