aboutsummaryrefslogtreecommitdiff
path: root/src/common/timers.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/timers.c')
-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 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;