mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-20 22:59:34 -05:00
parent
7b2c9aed3c
commit
16fcba1e98
1 changed files with 1 additions and 2 deletions
|
|
@ -298,11 +298,10 @@ ldap_pvt_clock_gettime( int clk_id, struct timespec *tv )
|
|||
/* emulate POSIX gettimeofday */
|
||||
int
|
||||
ldap_pvt_gettimeofday( struct timeval *tv, void *unused )
|
||||
int
|
||||
{
|
||||
struct timespec ts;
|
||||
ldap_pvt_clock_gettime( 0, &ts );
|
||||
tv->tv_sec = ts.tv_spec;
|
||||
tv->tv_sec = ts.tv_sec;
|
||||
tv->tv_usec = ts.tv_nsec / 1000;
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue