regen
This commit is contained in:
@@ -596,14 +596,16 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Macros to pull sec and nsec parts of mtime from struct stat.
|
* Macros to pull sec and nsec parts of mtime from struct stat.
|
||||||
|
* We need to be able to convert between timeval and timespec
|
||||||
|
* so the last 3 digits of tv_nsec are not significant.
|
||||||
*/
|
*/
|
||||||
#ifdef HAVE_ST_MTIM
|
#ifdef HAVE_ST_MTIM
|
||||||
# define mtim_getsec(_x) ((_x).st_mtim.tv_sec)
|
# define mtim_getsec(_x) ((_x).st_mtim.tv_sec)
|
||||||
# define mtim_getnsec(_x) ((_x).st_mtim.tv_nsec)
|
# define mtim_getnsec(_x) (((_x).st_mtim.tv_nsec / 1000) * 1000)
|
||||||
#else
|
#else
|
||||||
# ifdef HAVE_ST_MTIMESPEC
|
# ifdef HAVE_ST_MTIMESPEC
|
||||||
# define mtim_getsec(_x) ((_x).st_mtimespec.tv_sec)
|
# define mtim_getsec(_x) ((_x).st_mtimespec.tv_sec)
|
||||||
# define mtim_getnsec(_x) ((_x).st_mtimespec.tv_nsec)
|
# define mtim_getnsec(_x) (((_x).st_mtimespec.tv_nsec / 1000) * 1000)
|
||||||
# else
|
# else
|
||||||
# define mtim_getsec(_x) ((_x).st_mtime)
|
# define mtim_getsec(_x) ((_x).st_mtime)
|
||||||
# define mtim_getnsec(_x) (0)
|
# define mtim_getnsec(_x) (0)
|
||||||
|
Reference in New Issue
Block a user