From 48bc7a6596b3266b782a268b355d2a711642758b Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Wed, 16 Feb 2011 18:37:28 -0800 Subject: [PATCH] Fixed performance issues with too many updates (nanosleep detection was broken) --- protocols/vnc/configure.in | 1 + protocols/vnc/src/vnc_client.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/protocols/vnc/configure.in b/protocols/vnc/configure.in index 35d8c3fa..45a766e4 100644 --- a/protocols/vnc/configure.in +++ b/protocols/vnc/configure.in @@ -19,6 +19,7 @@ AC_CHECK_HEADERS([stdlib.h string.h syslog.h guacamole/client.h guacamole/guacio # Checks for library functions. AC_FUNC_MALLOC +AC_CHECK_FUNCS([nanosleep]) AC_CONFIG_FILES([Makefile]) AC_OUTPUT diff --git a/protocols/vnc/src/vnc_client.c b/protocols/vnc/src/vnc_client.c index 2a7af194..397a42c8 100644 --- a/protocols/vnc/src/vnc_client.c +++ b/protocols/vnc/src/vnc_client.c @@ -219,7 +219,7 @@ void guac_vnc_cut_text(rfbClient* client, const char* text, int textlen) { void vnc_guac_client_sleep(int millis) { -#ifdef nanosleep +#ifdef HAVE_NANOSLEEP struct timespec sleep_period; sleep_period.tv_sec = 0;