diff options
author | Jim Meyering <jim@meyering.net> | 2004-02-02 07:59:35 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2004-02-02 07:59:35 +0000 |
commit | dd42ad9e9c27b0a3bc76ad252742cf45d01938ae (patch) | |
tree | bdcfd4bfbb2f1c27f67acfda4a6274117cf8d854 /src | |
parent | 19b1ba88d561213ab34da7e1ec5eb88c14df122e (diff) | |
download | coreutils-dd42ad9e9c27b0a3bc76ad252742cf45d01938ae.tar.xz |
(TIMESPEC_NS): Define here, instead, now that stat.c also uses this macro.
Diffstat (limited to 'src')
-rw-r--r-- | src/system.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 |