[macOS] Fix deprecation warning for third-party/libevent (#3359)

arc4random_addrandom(2) was deprecated as of macOS 10.12
This commit is contained in:
Dzmitry Neviadomski 2022-06-29 17:55:11 +03:00 committed by GitHub
parent 0b75751de3
commit 129ad3e6d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -54,7 +54,11 @@
#define EVENT__HAVE_ARC4RANDOM_BUF 1
/* Define to 1 if you have the `arc4random_addrandom' function. */
#define EVENT__HAVE_ARC4RANDOM_ADDRANDOM 1
/* NOTE(nevack): this defines `evutil_secure_rng_add_bytes` function which
uses deprecated on macOS arc4random_addrandom(2).
Transmission on macOS never calls `evutil_secure_rng_add_bytes`, that's
why we remove this define to get rid of compiler warning. */
/* #undef EVENT__HAVE_ARC4RANDOM_ADDRANDOM */
/* Define if clock_gettime is available in libc */
/* #undef EVENT__DNS_USE_CPU_CLOCK_FOR_ID */