From: Richard Kettlewell Date: Sun, 2 Aug 2009 15:07:14 +0000 (+0100) Subject: Include sys/time.h in a few places, necessary for older libc versions. X-Git-Tag: 5.0~103 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/commitdiff_plain/19844d4fd9e1bb9c43d9f00309539b2a12093344 Include sys/time.h in a few places, necessary for older libc versions. Patch from Ross Younger. --- 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;