From: Kris Katterjohn Date: Sat, 3 Nov 2018 19:28:27 +0000 (-0500) Subject: Include sys/time.h in timers.c and time_fmt.c X-Git-Tag: tor-0.3.5.4-alpha~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=daaa2751ed6ea8fe6941b63ea819804d8f0a9fac;p=thirdparty%2Ftor.git Include sys/time.h in timers.c and time_fmt.c This fixes compilation on OpenBSD. Signed-off-by: Kris Katterjohn --- diff --git a/src/lib/encoding/time_fmt.c b/src/lib/encoding/time_fmt.c index a921fc681c..233d0dddff 100644 --- a/src/lib/encoding/time_fmt.c +++ b/src/lib/encoding/time_fmt.c @@ -26,6 +26,10 @@ #include #include +#ifdef HAVE_SYS_TIME_H +#include +#endif + #ifdef _WIN32 /* For struct timeval */ #include 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 +#endif + #ifdef _WIN32 // For struct timeval. #include