]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Compiling fix.
authorTimo Sirainen <tss@iki.fi>
Mon, 7 Sep 2009 15:59:28 +0000 (11:59 -0400)
committerTimo Sirainen <tss@iki.fi>
Mon, 7 Sep 2009 15:59:28 +0000 (11:59 -0400)
--HG--
branch : HEAD

src/lib/time-util.c
src/lib/time-util.h

index d3f79a35cd730effa18ea280eac81d371a293e8a..91e55e0189f6c761c840d05cc4aa2d04718e12df 100644 (file)
@@ -3,8 +3,6 @@
 #include "lib.h"
 #include "time-util.h"
 
-#include <sys/time.h>
-
 int timeval_cmp(const struct timeval *tv1, const struct timeval *tv2)
 {
        if (tv1->tv_sec < tv2->tv_sec)
index dab2ea91216092eea89b711f09e4127a707e9288..8cd7ef877a1bd46e241ef311b91e8894692453d7 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef TIME_UTIL_H
 #define TIME_UTIL_H
 
+#include <sys/time.h> /* for struct timeval */
+
 /* Returns -1 if tv1<tv2, 1 if tv1>tv2, 0 if they're equal. */
 int timeval_cmp(const struct timeval *tv1, const struct timeval *tv2);
 /* Returns tv1-tv2 in milliseconds. */