From b467422a4ca6706441ec68a025a302a36c907e0f Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Sun, 13 Mar 2005 08:16:34 +0000 Subject: st_mtim.tv_nsec, not tv_usec ticket: 2959 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17122 dc483132-0cff-0310-8789-dd5450dbe970 --- src/util/profile/ChangeLog | 2 +- src/util/profile/configure.in | 2 +- src/util/profile/prof_file.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/util/profile/ChangeLog b/src/util/profile/ChangeLog index 4063b1722b..c2d47942f4 100644 --- a/src/util/profile/ChangeLog +++ b/src/util/profile/ChangeLog @@ -1,7 +1,7 @@ 2005-03-13 Ken Raeburn * 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. diff --git a/src/util/profile/configure.in b/src/util/profile/configure.in index faae289558..0164540d76 100644 --- a/src/util/profile/configure.in +++ b/src/util/profile/configure.in @@ -6,7 +6,7 @@ AC_CHECK_SIZEOF(int) 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 +AC_CHECK_MEMBERS([struct stat.st_mtimensec,struct stat.st_mtimespec.tv_nsec,struct stat.st_mtim.tv_nsec],,,[#include #include ]) AC_PROG_AWK AC_KRB5_TCL diff --git a/src/util/profile/prof_file.c b/src/util/profile/prof_file.c index 347fef739e..004c3efd74 100644 --- a/src/util/profile/prof_file.c +++ b/src/util/profile/prof_file.c @@ -347,8 +347,8 @@ errcode_t profile_update_file_data(prf_data_t data) 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 -- cgit