]> git.ipfire.org Git - thirdparty/tor.git/commit
src/or/connection.c: expose bucket_millis_empty for bufferevents test
authorAnthony G. Basile <blueness@gentoo.org>
Thu, 26 Jun 2014 15:15:36 +0000 (11:15 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 16 Jul 2014 08:37:00 +0000 (10:37 +0200)
commitd504a4e36f571a5b6ed84529d3781d08df82f117
tree04aaecb0360f6ba6ce2efb0d046f917ec62a17c5
parent589de5ec20bf6f15813fc3bddb7a814309184800
src/or/connection.c: expose bucket_millis_empty for bufferevents test

Currently tor fails to build its test when enabled with bufferevents
because an #ifndef USE_BUFFEREVENTS hides bucket_millis_empty() and
friends.  This is fine if we don't run tests, but if we do, we need
these functions in src/or/libtor-testing.a when linking src/test/test.

This patch moves the functions outside the #ifndef and exposes them.

See downstream bug:

https://bugs.gentoo.org/show_bug.cgi?id=510124
src/or/connection.c