mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
Build correctly with older libevents
This commit is contained in:
parent
05f8429a28
commit
4e00625bbe
@ -400,6 +400,7 @@ AC_CHECK_FUNCS([event_get_version \
|
||||
event_get_method \
|
||||
event_set_log_callback \
|
||||
evdns_set_outgoing_bind_address \
|
||||
evutil_secure_rng_set_urandom_device_file \
|
||||
event_base_loopexit])
|
||||
AC_CHECK_MEMBERS([struct event.min_heap_idx], , ,
|
||||
[#include <event.h>
|
||||
|
@ -2804,8 +2804,10 @@ tor_main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
// registering libevent rng
|
||||
#ifdef HAVE_EVUTIL_SECURE_RNG_SET_URANDOM_DEVICE_FILE
|
||||
evutil_secure_rng_set_urandom_device_file(
|
||||
(char*) sandbox_intern_string("/dev/urandom"));
|
||||
#endif
|
||||
}
|
||||
|
||||
switch (get_options()->command) {
|
||||
|
Loading…
Reference in New Issue
Block a user