Un-break build libexpact.
The writeRandomBytes_arc4random is not used if the arc4random_buf is available. This caused compiler to throw warnings which are treated as an error in libexpact. Approved by: vangyzen
This commit is contained in:
parent
d83db3fb6a
commit
9b5dd8ff8b
@ -747,7 +747,7 @@ writeRandomBytes_dev_urandom(void * target, size_t count) {
|
||||
#endif /* ! defined(HAVE_ARC4RANDOM_BUF) && ! defined(HAVE_ARC4RANDOM) */
|
||||
|
||||
|
||||
#if defined(HAVE_ARC4RANDOM)
|
||||
#if defined(HAVE_ARC4RANDOM) && ! defined(HAVE_ARC4RANDOM_BUF)
|
||||
|
||||
static void
|
||||
writeRandomBytes_arc4random(void * target, size_t count) {
|
||||
@ -765,7 +765,7 @@ writeRandomBytes_arc4random(void * target, size_t count) {
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* defined(HAVE_ARC4RANDOM) */
|
||||
#endif /* defined(HAVE_ARC4RANDOM) && ! defined(HAVE_ARC4RANDOM_BUF) */
|
||||
|
||||
|
||||
#ifdef _WIN32
|
||||
|
Loading…
Reference in New Issue
Block a user