]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(TIMESPEC_NS): Define here, instead, now that stat.c also uses this macro.
authorJim Meyering <jim@meyering.net>
Mon, 2 Feb 2004 07:59:35 +0000 (07:59 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 2 Feb 2004 07:59:35 +0000 (07:59 +0000)
src/system.h

index 5bdaf88f2a82d92c64492a33766eefd72a8fd87d..0528322d6270fd6eebff10281780cacb4cf8e7b4 100644 (file)
@@ -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