Fixed performance issues with too many updates (nanosleep detection was broken)
This commit is contained in:
parent
8d0c3ac46b
commit
48bc7a6596
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user