From 19844d4fd9e1bb9c43d9f00309539b2a12093344 Mon Sep 17 00:00:00 2001 Message-Id: <19844d4fd9e1bb9c43d9f00309539b2a12093344.1714779062.git.mdw@distorted.org.uk> From: Mark Wooding Date: Sun, 2 Aug 2009 16:07:14 +0100 Subject: [PATCH] Include sys/time.h in a few places, necessary for older libc versions. Patch from Ross Younger. Organization: Straylight/Edgeware From: Richard Kettlewell --- lib/timeval.h | 1 + libtests/t-event.c | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/timeval.h b/lib/timeval.h index 930ad24..325a7ce 100644 --- a/lib/timeval.h +++ b/lib/timeval.h @@ -22,6 +22,7 @@ #define TIMEVAL_H #include +#include static inline struct timeval tvsub(const struct timeval a, const struct timeval b) { diff --git a/libtests/t-event.c b/libtests/t-event.c index 87c803a..2e13eaf 100644 --- a/libtests/t-event.c +++ b/libtests/t-event.c @@ -19,6 +19,7 @@ #include "event.h" #include +#include static int run1, run2, run3; static ev_timeout_handle t1, t2, t3; -- [mdw]