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;