chiark / gitweb /
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 930ad24efabc00afc8007e8337e5b2e63b50ca4a..325a7cedda4e4d41112b5c1fb14c5b5db45b1819 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 87c803a2a89fc63f4f8a4106248b43cef57ff9ff..2e13eafaec70730cfa070e3bd28eae58b5fcad52 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;