From ae5613a1df0123243d7d58332de76565c90bb114 Mon Sep 17 00:00:00 2001 From: Ron Pedde Date: Fri, 31 Dec 2004 04:57:33 +0000 Subject: [PATCH] fix solaris compile problems... take 2. --- src/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 92231ea2..9343979e 100644 --- a/src/main.c +++ b/src/main.c @@ -190,6 +190,8 @@ void daap_handler(WS_CONNINFO *pwsc) { int bytes_copied=0; + GZIP_STREAM *gz; + close=pwsc->close; pwsc->close=1; /* in case we have any errors */ root=NULL; @@ -338,7 +340,7 @@ void daap_handler(WS_CONNINFO *pwsc) { start_time = time(NULL); if (compress) { DPRINTF(E_DBG,L_WS|L_DAAP,"Using compression: %s\n", pwsc->uri); - GZIP_STREAM *gz = gzip_alloc(); + gz = gzip_alloc(); daap_serialize(root,pwsc->fd,gz); gzip_compress(gz); bytes_written = gz->bytes_out;