diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-09-09 15:29:19 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-09-09 15:29:19 -0400 |
commit | 4e00625bbe030f5c1ae54fb7c4c07dd061ab8644 (patch) | |
tree | 0a3155fdcafccc52b1c54ca11949cec0b012614f | |
parent | 05f8429a280f80c94fa7c01f6a5c4b654cd02286 (diff) | |
download | tor-4e00625bbe030f5c1ae54fb7c4c07dd061ab8644.tar.gz tor-4e00625bbe030f5c1ae54fb7c4c07dd061ab8644.zip |
Build correctly with older libevents
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | src/or/main.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index e2b2dd60cc..8992c84e03 100644 --- a/configure.ac +++ b/configure.ac @@ -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> diff --git a/src/or/main.c b/src/or/main.c index 18e8bc44ae..01f6b5c755 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -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) { |