X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fldap_pvt.h;fp=include%2Fldap_pvt.h;h=141e1e798200fbb6b7cc6677ff319a86a375236d;hb=597ce610007c1a6670af69b1738f5b263e87f723;hp=ea4c7633052ed460af73ab05ea5f43cecfa63383;hpb=291b6a1a22b47e770bf333e1428767ad40b41f88;p=openldap diff --git a/include/ldap_pvt.h b/include/ldap_pvt.h index ea4c763305..141e1e7982 100644 --- a/include/ldap_pvt.h +++ b/include/ldap_pvt.h @@ -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 )