From c68f4f687800d66a114dd2989093fc75bf4fadd1 Mon Sep 17 00:00:00 2001 From: Sam Hartman Date: Wed, 5 Oct 2011 21:30:50 +0000 Subject: 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 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25310 dc483132-0cff-0310-8789-dd5450dbe970 --- src/include/k5-platform.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/include') 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); /* -- cgit