diff options
author | Oliver Kiddle <opk@users.sourceforge.net> | 2007-11-01 17:57:57 +0000 |
---|---|---|
committer | Oliver Kiddle <opk@users.sourceforge.net> | 2007-11-01 17:57:57 +0000 |
commit | fe5390a04ce44daf1604298756d772b2ce12b268 (patch) | |
tree | 1c13e446cacb0e9462c07e5de027a181b592ea8f /Src/system.h | |
parent | 8d956e9bcb8fe5aa3ca92e3c856b26800af11ff5 (diff) | |
download | zsh-fe5390a04ce44daf1604298756d772b2ce12b268.tar.gz zsh-fe5390a04ce44daf1604298756d772b2ce12b268.tar.xz zsh-fe5390a04ce44daf1604298756d772b2ce12b268.zip |
24050: handle nanosecond resolution timestamps on systems that support them
Diffstat (limited to 'Src/system.h')
-rw-r--r-- | Src/system.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Src/system.h b/Src/system.h index 022ace250..2d89ac80e 100644 --- a/Src/system.h +++ b/Src/system.h @@ -805,3 +805,24 @@ extern short ospeed; # define USE_GETPWUID #endif +#ifdef HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC +# define GET_ST_ATIME_NSEC(st) (st).st_atim.tv_nsec +#elif HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC +# define GET_ST_ATIME_NSEC(st) (st).st_atimespec.tv_nsec +#elif HAVE_STRUCT_STAT_ST_ATIMENSEC +# define GET_ST_ATIME_NSEC(st) (st).st_atimensec +#endif +#ifdef HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC +# define GET_ST_MTIME_NSEC(st) (st).st_mtim.tv_nsec +#elif HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC +# define GET_ST_MTIME_NSEC(st) (st).st_mtimespec.tv_nsec +#elif HAVE_STRUCT_STAT_ST_MTIMENSEC +# define GET_ST_MTIME_NSEC(st) (st).st_mtimensec +#endif +#ifdef HAVE_STRUCT_STAT_ST_CTIM_TV_NSEC +# define GET_ST_CTIME_NSEC(st) (st).st_ctim.tv_nsec +#elif HAVE_STRUCT_STAT_ST_CTIMESPEC_TV_NSEC +# define GET_ST_CTIME_NSEC(st) (st).st_ctimespec.tv_nsec +#elif HAVE_STRUCT_STAT_ST_CTIMENSEC +# define GET_ST_CTIME_NSEC(st) (st).st_ctimensec +#endif |