Un-break build libexpat.
The writeRandomBytes_arc4random is not used if the arc4random_buf is available. This caused compiler to throw warnings. Finally this breaks a build when warnings are treated as errors.
This commit is contained in:
parent
ba1cfbbeb4
commit
7f3291057b
@ -738,7 +738,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) {
|
||||
@ -756,7 +756,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