From c6a6c5b681563cdebd54e34dc0b25525c451299e Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Tue, 27 Aug 2013 09:47:45 -0700 Subject: [PATCH] Add ifdef around pulse-specific code. --- src/protocols/vnc/client.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/protocols/vnc/client.h b/src/protocols/vnc/client.h index bceb74f8..5c8e35c8 100644 --- a/src/protocols/vnc/client.h +++ b/src/protocols/vnc/client.h @@ -42,7 +42,9 @@ #include #include +#ifdef ENABLE_PULSE #include +#endif /** * The maximum duration of a frame in milliseconds. @@ -79,7 +81,8 @@ typedef struct vnc_guac_client_data { * Audio output, if any. */ guac_audio_stream* audio; - + +#ifdef ENABLE_PULSE /** * The name of the PulseAudio server to connect to. */ @@ -89,6 +92,7 @@ typedef struct vnc_guac_client_data { * PulseAudio event loop. */ pa_threaded_mainloop* pa_mainloop; +#endif } vnc_guac_client_data;