diff options
author | dscho <dscho> | 2005-12-19 18:38:53 +0000 |
---|---|---|
committer | dscho <dscho> | 2005-12-19 18:38:53 +0000 |
commit | 1b81e342cbed1b620dec7065b1c06b47df0b6d92 (patch) | |
tree | ff90bd1ecaa9e696238637f68594256078bb4508 /libvncclient/sockets.c | |
parent | 3a8d4bdbe6d264d8f93c75dc62f61ec41e9e7462 (diff) | |
download | libtdevnc-1b81e342cbed1b620dec7065b1c06b47df0b6d92.tar.gz libtdevnc-1b81e342cbed1b620dec7065b1c06b47df0b6d92.zip |
assorted fixes for MinGW32
Diffstat (limited to 'libvncclient/sockets.c')
-rw-r--r-- | libvncclient/sockets.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libvncclient/sockets.c b/libvncclient/sockets.c index aca38aa..7f350e2 100644 --- a/libvncclient/sockets.c +++ b/libvncclient/sockets.c @@ -91,12 +91,11 @@ ReadFromRFBServer(rfbClient* client, char *out, unsigned int n) diff.tv_sec--; diff.tv_usec+=1000000; } - sleep (diff.tv_sec); #ifndef __MINGW32__ - /* FIXME */ + sleep (diff.tv_sec); usleep (diff.tv_usec); #else - rfbClientErr("usleep on MinGW32 NOT IMPLEMENTED\n"); + Sleep (diff.tv_sec * 1000 + diff.tv_usec/1000); #endif } |