Add ifdef around pulse-specific code.

This commit is contained in:
Michael Jumper 2013-08-27 09:47:45 -07:00
parent 73df645ce6
commit c6a6c5b681

View File

@ -42,7 +42,9 @@
#include <guacamole/audio.h>
#include <rfb/rfbclient.h>
#ifdef ENABLE_PULSE
#include <pulse/pulseaudio.h>
#endif
/**
* The maximum duration of a frame in milliseconds.
@ -80,6 +82,7 @@ typedef struct vnc_guac_client_data {
*/
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;