2005-03-13 Ken Raeburn <raeburn@mit.edu>
* configure.in: Check struct stat for fields st_mtimensec,
- st_mtimespec.tv_nsec, and st_mtim.tv_usec.
+ st_mtimespec.tv_nsec, and st_mtim.tv_nsec.
* prof_file.c (profile_update_file_data): If one of them is
found, use it as the fractional part of the timestamp. Do
re-read the file if the fractional parts don't match.
AC_CHECK_SIZEOF(long)
AC_CHECK_HEADERS(unistd.h stdlib.h pwd.h)
AC_CHECK_FUNCS(stat access strdup getpwuid_r)
-AC_CHECK_MEMBERS([struct stat.st_mtimensec,struct stat.st_mtimespec.tv_nsec,struct stat.st_mtim.tv_usec],,,[#include <sys/types.h>
+AC_CHECK_MEMBERS([struct stat.st_mtimensec,struct stat.st_mtimespec.tv_nsec,struct stat.st_mtim.tv_nsec],,,[#include <sys/types.h>
#include <sys/stat.h>])
AC_PROG_AWK
AC_KRB5_TCL
frac = st.st_mtimensec;
#elif defined HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC
frac = st.st_mtimespec.tv_nsec;
-#elif defined HAVE_STRUCT_STAT_ST_MTIM_TV_USEC
- frac = st.st_mtim.tv_usec;
+#elif defined HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC
+ frac = st.st_mtim.tv_nsec;
#else
frac = 0;
#endif