Skip to content
Snippets Groups Projects
Commit 4e00625b authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

Build correctly with older libevents

parent 05f8429a
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment