diff options
author | Kris Katterjohn <katterjohn@gmail.com> | 2018-11-03 14:28:27 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-11-06 15:15:22 -0500 |
commit | daaa2751ed6ea8fe6941b63ea819804d8f0a9fac (patch) | |
tree | d8824176bfaf77f2c919dff9bfd2dc99f1d9db3d /src/lib/evloop/timers.c | |
parent | 9431d3507490cc85a32969f7eb81808b08966677 (diff) | |
download | tor-daaa2751ed6ea8fe6941b63ea819804d8f0a9fac.tar.gz tor-daaa2751ed6ea8fe6941b63ea819804d8f0a9fac.zip |
Include sys/time.h in timers.c and time_fmt.c
This fixes compilation on OpenBSD.
Signed-off-by: Kris Katterjohn <katterjohn@gmail.com>
Diffstat (limited to 'src/lib/evloop/timers.c')
-rw-r--r-- | src/lib/evloop/timers.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/evloop/timers.c b/src/lib/evloop/timers.c index c4e85c7c93..3603bf1a7d 100644 --- a/src/lib/evloop/timers.c +++ b/src/lib/evloop/timers.c @@ -39,6 +39,10 @@ #include "lib/malloc/malloc.h" #include "lib/time/compat_time.h" +#ifdef HAVE_SYS_TIME_H +#include <sys/time.h> +#endif + #ifdef _WIN32 // For struct timeval. #include <winsock2.h> |