]> git.sur5r.net Git - openldap/blobdiff - include/ldap_pvt.h
ITS#8295 fix Windows microsecond timer
[openldap] / include / ldap_pvt.h
index ea4c7633052ed460af73ab05ea5f43cecfa63383..141e1e798200fbb6b7cc6677ff319a86a375236d 100644 (file)
@@ -127,6 +127,12 @@ struct lutil_tm;
 LDAP_F( void )
 ldap_pvt_gettime LDAP_P(( struct lutil_tm * ));
 
+#ifdef _WIN32
+#define gettimeofday(tv,tz)    ldap_pvt_gettimeofday(tv,tz)
+LDAP_F( int )
+ldap_pvt_gettimeofday LDAP_P(( struct timeval *tv, void *unused ));
+#endif
+
 /* use this macro to allocate buffer for ldap_pvt_csnstr */
 #define LDAP_PVT_CSNSTR_BUFSIZE        64
 LDAP_F( size_t )