]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Fixed compiling in BSD systems.
authorTimo Sirainen <tss@iki.fi>
Fri, 30 May 2008 08:58:56 +0000 (11:58 +0300)
committerTimo Sirainen <tss@iki.fi>
Fri, 30 May 2008 08:58:56 +0000 (11:58 +0300)
--HG--
branch : HEAD

src/lib/compat.h

index db8a3aaed9a1852777411ef308e44593546f4d77..bb67c08078e436a9e8ccfac0b0ecfa7e6d5c2ae3 100644 (file)
@@ -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