From dd42ad9e9c27b0a3bc76ad252742cf45d01938ae Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 2 Feb 2004 07:59:35 +0000 Subject: (TIMESPEC_NS): Define here, instead, now that stat.c also uses this macro. --- src/system.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/system.h b/src/system.h index 5bdaf88f2..0528322d6 100644 --- a/src/system.h +++ b/src/system.h @@ -548,6 +548,12 @@ initialize_exit_failure (int status) #define CTIME_CMP(a, b) ST_TIME_CMP (a, b, st_ctime, st_ctim.ST_MTIM_NSEC) #define MTIME_CMP(a, b) ST_TIME_CMP (a, b, st_mtime, st_mtim.ST_MTIM_NSEC) +#ifdef ST_MTIM_NSEC +# define TIMESPEC_NS(timespec) ((timespec).ST_MTIM_NSEC) +#else +# define TIMESPEC_NS(timespec) 0 +#endif + #ifndef RETSIGTYPE # define RETSIGTYPE void #endif -- cgit v1.2.3-70-g09d2