From f9a6950fbf3c7c29a20da52a697f5422ea9d5d5b Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Wed, 20 Jun 2007 19:05:04 +0000 Subject: [PATCH] regen --- config.h.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/config.h.in b/config.h.in index 27a41a176..9ed0f61c7 100644 --- a/config.h.in +++ b/config.h.in @@ -596,14 +596,16 @@ /* * 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 # 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 # ifdef HAVE_ST_MTIMESPEC # 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 # define mtim_getsec(_x) ((_x).st_mtime) # define mtim_getnsec(_x) (0) -- 2.50.1