diff --git a/main.c b/main.c index bd0f585..e607f14 100644 --- a/main.c +++ b/main.c @@ -598,6 +598,20 @@ void rfbInitServer(rfbScreenInfoPtr rfbScreen) httpInitSockets(rfbScreen); } +#ifdef WIN32 +#include +#include +#include + +void gettimeofday(struct timeval* tv,char*) +{ + SYSTEMTIME t; + GetSystemTime(&t); + tv->tv_sec=t.wHour*3600+t.wMinute*60+t.wSecond; + tv->tv_usec=t.wMilliseconds*1000; +} +#endif + void rfbProcessEvents(rfbScreenInfoPtr rfbScreen,long usec) {