changeset 7577:0d842b055838 HEAD

Fixed compiling in BSD systems.
author Timo Sirainen <tss@iki.fi>
date Fri, 30 May 2008 11:58:56 +0300
parents eb8334db63a7
children 5766890f1275
files src/lib/compat.h
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib/compat.h	Fri May 30 03:15:22 2008 +0300
+++ b/src/lib/compat.h	Fri May 30 11:58:56 2008 +0300
@@ -90,10 +90,10 @@
 
 #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