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 | |
parent | 3a8d4bdbe6d264d8f93c75dc62f61ec41e9e7462 (diff) | |
download | libtdevnc-1b81e342cbed1b620dec7065b1c06b47df0b6d92.tar.gz libtdevnc-1b81e342cbed1b620dec7065b1c06b47df0b6d92.zip |
assorted fixes for MinGW32
Diffstat (limited to 'libvncclient')
-rw-r--r-- | libvncclient/sockets.c | 5 | ||||
-rw-r--r-- | libvncclient/vncviewer.c | 2 |
2 files changed, 3 insertions, 4 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 } diff --git a/libvncclient/vncviewer.c b/libvncclient/vncviewer.c index 941f512..02f66f1 100644 --- a/libvncclient/vncviewer.c +++ b/libvncclient/vncviewer.c @@ -252,6 +252,7 @@ rfbBool rfbInitClient(rfbClient* client,int* argc,char** argv) { } void rfbClientCleanup(rfbClient* client) { +#ifdef LIBVNCSERVER_HAVE_LIBJPEG int i; for ( i = 0; i < 4; i++ ) { @@ -268,7 +269,6 @@ void rfbClientCleanup(rfbClient* client) { rfbClientLog("inflateEnd: %s\n", client->decompStream.msg ); } -#ifdef LIBVNCSERVER_HAVE_LIBJPEG if (client->jpegSrcManager) free(client->jpegSrcManager); #endif |