1
0
Fork 0
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:
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

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 */