diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-06-29 12:59:43 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-06-29 12:59:43 -0400 |
commit | 9d5b815dcabc7344f4e0613246d061064f6d1bd1 (patch) | |
tree | f3f211712334c695fb1256c2b7d5720924b1a98e /src/common | |
parent | 6ac64e16ed6958d1a5960c560254217478b7ad87 (diff) | |
download | tor-9d5b815dcabc7344f4e0613246d061064f6d1bd1.tar.gz tor-9d5b815dcabc7344f4e0613246d061064f6d1bd1.zip |
Add a missing include to timers, to make windows happier
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/timers.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/timers.c b/src/common/timers.c index 57b7d7265d..ff92a2e447 100644 --- a/src/common/timers.c +++ b/src/common/timers.c @@ -39,6 +39,11 @@ #include "lib/malloc/util_malloc.h" #include "lib/time/compat_time.h" +#ifdef _WIN32 +// For struct timeval. +#include <winsock2.h> +#endif + struct timeout_cb { timer_cb_fn_t cb; void *arg; |