aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-04-17 09:14:44 -0400
committerNick Mathewson <nickm@torproject.org>2018-04-17 09:14:44 -0400
commitc32108ee0fea851ced14f71d842390992f762393 (patch)
treeebd2ce46fa5adcabc2f594ae186742daeaec22e0 /src
parentae4e5b98245169dc02c12138d4acc69ce7da0261 (diff)
parente0809ec5f5de4c3d22527425bf6253843044e1b2 (diff)
downloadtor-c32108ee0fea851ced14f71d842390992f762393.tar.gz
tor-c32108ee0fea851ced14f71d842390992f762393.zip
Merge remote-tracking branch 'public/bug24688'
Diffstat (limited to 'src')
-rw-r--r--src/common/timers.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/timers.c b/src/common/timers.c
index a90817da1c..6f6236ed3b 100644
--- a/src/common/timers.c
+++ b/src/common/timers.c
@@ -64,6 +64,11 @@ struct timeout_cb {
* above TIMEOUT_MAX can also be super-inefficient. Choosing 5 here sets
* timeout_max to 2^30 ticks, or 29 hours with our value for USEC_PER_TICK */
#define WHEEL_NUM 5
+#if SIZEOF_VOID_P == 4
+/* On 32-bit platforms, we want to override wheel_bit, so that timeout.c will
+ * use 32-bit math. */
+#define WHEEL_BIT 5
+#endif
#include "src/ext/timeouts/timeout.c"
static struct timeouts *global_timeouts = NULL;