diff options
author | Damien Miller <djm@mindrot.org> | 2000-08-16 10:35:58 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2000-08-16 10:35:58 +1000 |
commit | 11fa2cc3839b1e7fed1d85aa1158cce4d498bc58 (patch) | |
tree | f432a585240e930f3accd4aa2ab43ad1835f8ea5 /bsd-misc.h | |
parent | 0da2eaaf06e8d05862dcce34cc8c7d1a0740de7c (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.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/bsd-misc.h b/bsd-misc.h index 76b4e1a78..aea285c8d 100644 --- a/bsd-misc.h +++ b/bsd-misc.h | |||
@@ -32,11 +32,6 @@ | |||
32 | 32 | ||
33 | #include "config.h" | 33 | #include "config.h" |
34 | 34 | ||
35 | #ifndef HAVE_ARC4RANDOM | ||
36 | unsigned int arc4random(void); | ||
37 | void arc4random_stir(void); | ||
38 | #endif /* !HAVE_ARC4RANDOM */ | ||
39 | |||
40 | #ifndef HAVE_SETPROCTITLE | 35 | #ifndef HAVE_SETPROCTITLE |
41 | void setproctitle(const char *fmt, ...); | 36 | void setproctitle(const char *fmt, ...); |
42 | #endif /* !HAVE_SETPROCTITLE */ | 37 | #endif /* !HAVE_SETPROCTITLE */ |
@@ -58,8 +53,8 @@ int innetgr(const char *netgroup, const char *host, | |||
58 | int seteuid(uid_t euid); | 53 | int seteuid(uid_t euid); |
59 | #endif /* !defined(HAVE_SETEUID) && defined(HAVE_SETREUID) */ | 54 | #endif /* !defined(HAVE_SETEUID) && defined(HAVE_SETREUID) */ |
60 | 55 | ||
61 | #if !defined(HAVE_STRERROR) && defined(HAVE_SYS_ERRLIST) | 56 | #if !defined(HAVE_STRERROR) && defined(HAVE_SYS_ERRLIST) && defined(HAVE_SYS_NERR) |
62 | const char *strerror(void); | 57 | const char *strerror(int e); |
63 | #endif /* !defined(HAVE_STRERROR) && defined(HAVE_SYS_ERRLIST) */ | 58 | #endif |
64 | 59 | ||
65 | #endif /* _BSD_MISC_H */ | 60 | #endif /* _BSD_MISC_H */ |