mirror of
https://github.com/transmission/transmission
synced 2024-12-21 23:32:35 +00:00
[macOS] Fix deprecation warning for third-party/libevent (#3359)
arc4random_addrandom(2) was deprecated as of macOS 10.12
This commit is contained in:
parent
0b75751de3
commit
129ad3e6d6
1 changed files with 5 additions and 1 deletions
6
third-party/macosx-libevent-event-config.h
vendored
6
third-party/macosx-libevent-event-config.h
vendored
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue