From: Timo Sirainen Date: Fri, 30 May 2008 08:58:56 +0000 (+0300) Subject: Fixed compiling in BSD systems. X-Git-Tag: 1.1.rc7~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fd186c09de99f4ebc8465f2b8046a2360ec4c927;p=thirdparty%2Fdovecot%2Fcore.git Fixed compiling in BSD systems. --HG-- branch : HEAD --- diff --git a/src/lib/compat.h b/src/lib/compat.h index db8a3aaed9..bb67c08078 100644 --- a/src/lib/compat.h +++ b/src/lib/compat.h @@ -90,10 +90,10 @@ typedef int socklen_t; #define CMP_ST_MTIME(st1, st2) \ ((st1)->st_mtime == (st2)->st_mtime && \ - ST_NTIMES_EQUAL((st1)->st_mtim.tv_nsec, (st2)->st_mtim.tv_nsec)) + ST_NTIMES_EQUAL(ST_MTIME_NSEC(*(st1)), ST_MTIME_NSEC(*(st2)))) #define CMP_ST_CTIME(st1, st2) \ ((st1)->st_ctime == (st2)->st_ctime && \ - ST_NTIMES_EQUAL((st1)->st_ctim.tv_nsec, (st2)->st_ctim.tv_nsec)) + ST_NTIMES_EQUAL(ST_MTIME_NSEC(*(st1)), ST_MTIME_NSEC(*(st2)))) /* strcasecmp(), strncasecmp() */ #ifndef HAVE_STRCASECMP