Mercurial > dovecot > core-2.2
changeset 9897:21612b2b7b85 HEAD
Compiling fix.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 07 Sep 2009 11:59:28 -0400 |
parents | 7675eb23bba8 |
children | 7afe868ee86f |
files | src/lib/time-util.c src/lib/time-util.h |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib/time-util.c Mon Sep 07 11:57:38 2009 -0400 +++ b/src/lib/time-util.c Mon Sep 07 11:59:28 2009 -0400 @@ -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)
--- a/src/lib/time-util.h Mon Sep 07 11:57:38 2009 -0400 +++ b/src/lib/time-util.h Mon Sep 07 11:59:28 2009 -0400 @@ -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. */