Fixed performance issues with too many updates (nanosleep detection was broken)

This commit is contained in:
Michael Jumper 2011-02-16 18:37:28 -08:00
parent 8d0c3ac46b
commit 48bc7a6596
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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;