summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2005-03-13 08:16:34 +0000
committerKen Raeburn <raeburn@mit.edu>2005-03-13 08:16:34 +0000
commitb467422a4ca6706441ec68a025a302a36c907e0f (patch)
tree6433f681966566e2122525ec569a5a4a8fd26d74 /src
parentcc823ff1f9ccab035fed4ff424917390ef4abe5b (diff)
downloadkrb5-b467422a4ca6706441ec68a025a302a36c907e0f.tar.gz
krb5-b467422a4ca6706441ec68a025a302a36c907e0f.tar.xz
krb5-b467422a4ca6706441ec68a025a302a36c907e0f.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/util/profile/ChangeLog2
-rw-r--r--src/util/profile/configure.in2
-rw-r--r--src/util/profile/prof_file.c4
3 files changed, 4 insertions, 4 deletions
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 <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.
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 <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
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