=== modified file 'lib/stat-time.h' --- lib/stat-time.h 2013-01-01 09:11:05 +0000 +++ lib/stat-time.h 2013-01-14 18:18:16 +0000 @@ -22,6 +22,7 @@ #include #include +#include _GL_INLINE_HEADER_BEGIN #ifndef _GL_STAT_TIME_INLINE @@ -136,14 +137,15 @@ _GL_STAT_TIME_INLINE struct timespec get_stat_mtime (struct stat const *st) { + struct timespec t; #ifdef STAT_TIMESPEC - return STAT_TIMESPEC (st, st_mtim); + t = STAT_TIMESPEC (st, st_mtim); #else - struct timespec t; t.tv_sec = st->st_mtime; t.tv_nsec = get_stat_mtime_ns (st); +#endif + fprintf (stderr, "stat_mtime=%ld.%09ld\n", (long) t.tv_sec, (long) t.tv_nsec); return t; -#endif } /* Return *ST's birth time, if available; otherwise return a value