diff options
author | Darren Tucker <dtucker@zip.com.au> | 2013-11-08 18:54:38 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2013-11-08 18:54:38 +1100 |
commit | ccdb9bec46bcc88549b26a94aa0bae2b9f51031c (patch) | |
tree | 0f255c25982ed34f61d24cbc80108c84c1973905 /openbsd-compat/openbsd-compat.h | |
parent | 3420a50169b52cc8d2775d51316f9f866c73398f (diff) |
- (dtucker) [openbsd-compat/openbsd-compat.h] Add null implementation of
arc4random_stir for platforms that have arc4random but don't have
arc4random_stir (right now this is only OpenBSD -current).
Diffstat (limited to 'openbsd-compat/openbsd-compat.h')
-rw-r--r-- | openbsd-compat/openbsd-compat.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/openbsd-compat/openbsd-compat.h b/openbsd-compat/openbsd-compat.h index 392fa38dc..cb007f018 100644 --- a/openbsd-compat/openbsd-compat.h +++ b/openbsd-compat/openbsd-compat.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $Id: openbsd-compat.h,v 1.58 2013/06/05 22:30:21 dtucker Exp $ */ | 1 | /* $Id: openbsd-compat.h,v 1.59 2013/11/08 07:54:39 dtucker Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 1999-2003 Damien Miller. All rights reserved. | 4 | * Copyright (c) 1999-2003 Damien Miller. All rights reserved. |
@@ -161,9 +161,13 @@ int writev(int, struct iovec *, int); | |||
161 | 161 | ||
162 | #ifndef HAVE_GETPEEREID | 162 | #ifndef HAVE_GETPEEREID |
163 | int getpeereid(int , uid_t *, gid_t *); | 163 | int getpeereid(int , uid_t *, gid_t *); |
164 | #endif | 164 | #endif |
165 | 165 | ||
166 | #ifndef HAVE_ARC4RANDOM | 166 | #ifdef HAVE_ARC4RANDOM |
167 | # ifndef HAVE_ARC4RANDOM_STIR | ||
168 | # define arc4random_stir() | ||
169 | # endif | ||
170 | #else | ||
167 | unsigned int arc4random(void); | 171 | unsigned int arc4random(void); |
168 | void arc4random_stir(void); | 172 | void arc4random_stir(void); |
169 | #endif /* !HAVE_ARC4RANDOM */ | 173 | #endif /* !HAVE_ARC4RANDOM */ |