
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@552 ec53bebd-3082-4978-b11e-865c3cabbd6b
19 lines
280 B
C
19 lines
280 B
C
#include "krb_locl.h"
|
|
RCSID("$Id$");
|
|
|
|
#ifndef HAVE_GETTIMEOFDAY
|
|
/*
|
|
* Simple gettimeofday that only returns seconds.
|
|
*/
|
|
int
|
|
gettimeofday (struct timeval *tp, void *ignore)
|
|
{
|
|
time_t t;
|
|
|
|
t = time(NULL);
|
|
tp->tv_sec = t;
|
|
tp->tv_usec = 0;
|
|
return 0;
|
|
}
|
|
#endif
|