summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorSam Hartman <hartmans@mit.edu>2011-10-05 21:30:50 +0000
committerSam Hartman <hartmans@mit.edu>2011-10-05 21:30:50 +0000
commitc68f4f687800d66a114dd2989093fc75bf4fadd1 (patch)
treeb642efbae4903a9c80bcc0d34c492b5103742002 /src/include
parent61ccf4d6a8fa65780e8564a065d7aa4e76f5d54d (diff)
downloadkrb5-c68f4f687800d66a114dd2989093fc75bf4fadd1.tar.gz
krb5-c68f4f687800d66a114dd2989093fc75bf4fadd1.tar.xz
krb5-c68f4f687800d66a114dd2989093fc75bf4fadd1.zip
Add krb5int_gettimeofday to k5sprt for platforms w/o native gettimeofday
Microsecond accuracy on _WIN32, but only one second accuracy on other, AFAIK purely hypothetical, platforms that lack native gettimeofday. Shamelessly cribbed from Heimdal. Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com> git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25310 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/include')
-rw-r--r--src/include/k5-platform.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/include/k5-platform.h b/src/include/k5-platform.h
index e9155cefb..77d710b49 100644
--- a/src/include/k5-platform.h
+++ b/src/include/k5-platform.h
@@ -1031,6 +1031,11 @@ extern int krb5int_mkstemp(char *);
#define mkstemp krb5int_mkstemp
#endif
+#ifndef HAVE_GETTIMEOFDAY
+extern int krb5int_gettimeofday(struct timeval *tp, void *ignore);
+#define gettimeofday krb5int_gettimeofday
+#endif
+
extern void krb5int_zap(void *ptr, size_t len);
/*