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 +#endif + struct timeout_cb { timer_cb_fn_t cb; void *arg;