From fd186c09de99f4ebc8465f2b8046a2360ec4c927 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Fri, 30 May 2008 11:58:56 +0300 Subject: [PATCH] Fixed compiling in BSD systems. --HG-- branch : HEAD --- src/lib/compat.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.47.3