summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2010-07-08 19:35:48 +0200
committerAlexander Larsson <alexl@redhat.com>2010-07-08 22:25:28 +0200
commit633e962ac35f0cb0281bba4b22b88ff78cd76d80 (patch)
treeb84ea2c450a9bb7d83593afdbd9e61d1dc5ee4c7 /server
parentceff16cad6a9191d634b83b2914096e7564924e7 (diff)
Make tunnel support optional in client too
Diffstat (limited to 'server')
-rw-r--r--server/reds.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/server/reds.c b/server/reds.c
index 1a227ae..df82f19 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -55,7 +55,7 @@
#include "demarshallers.h"
#include "marshaller.h"
#include "generated_marshallers.h"
-#ifdef HAVE_SLIRP
+#ifdef USE_TUNNEL
#include "red_tunnel_worker.h"
#endif
@@ -92,7 +92,9 @@ static pthread_mutex_t *lock_cs;
static long *lock_count;
uint32_t streaming_video = STREAM_VIDEO_FILTER;
spice_image_compression_t image_compression = SPICE_IMAGE_COMPRESS_AUTO_GLZ;
+#ifdef USE_TUNNEL
void *red_tunnel = NULL;
+#endif
int agent_mouse = TRUE;
static void openssl_init();
@@ -3456,7 +3458,7 @@ __visible__ int spice_server_add_interface(SpiceServer *s,
attach_to_red_agent(SPICE_CONTAINEROF(sin, SpiceVDIPortInstance, base));
} else if (strcmp(interface->type, SPICE_INTERFACE_NET_WIRE) == 0) {
-#ifdef HAVE_SLIRP
+#ifdef USE_TUNNEL
SpiceNetWireInstance *net;
red_printf("SPICE_INTERFACE_NET_WIRE");
if (red_tunnel) {