Include sys/time.h in a few places, necessary for older libc versions.
authorRichard Kettlewell <rjk@greenend.org.uk>
Sun, 2 Aug 2009 15:07:14 +0000 (16:07 +0100)
committerRichard Kettlewell <rjk@greenend.org.uk>
Sun, 2 Aug 2009 15:07:14 +0000 (16:07 +0100)
Patch from Ross Younger.

lib/timeval.h
libtests/t-event.c

index 930ad24..325a7ce 100644 (file)
@@ -22,6 +22,7 @@
 #define TIMEVAL_H
 
 #include <time.h>
+#include <sys/time.h>
 
 static inline struct timeval tvsub(const struct timeval a,
                                    const struct timeval b) {
index 87c803a..2e13eaf 100644 (file)
@@ -19,6 +19,7 @@
 #include "event.h"
 
 #include <time.h>
+#include <sys/time.h>
 
 static int run1, run2, run3;
 static ev_timeout_handle t1, t2, t3;