~ubuntu-branches/debian/jessie/italc/jessie

« back to all changes in this revision

Viewing changes to ica/x11/libvncserver/zlib.c

  • Committer: Bazaar Package Importer
  • Author(s): Patrick Winnertz
  • Date: 2011-02-11 14:50:22 UTC
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: james.westby@ubuntu.com-20110211145022-sn173siax6lywjus
Tags: upstream-1.0.13
ImportĀ upstreamĀ versionĀ 1.0.13

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
 * raw encoding is used instead.
41
41
 */
42
42
 
43
 
static int zlibBeforeBufSize = 0;
44
 
static char *zlibBeforeBuf = NULL;
45
 
 
46
 
static int zlibAfterBufSize = 0;
47
 
static char *zlibAfterBuf = NULL;
48
 
static int zlibAfterBufLen;
 
43
/*
 
44
 * Out of lazyiness, we use thread local storage for zlib as we did for
 
45
 * tight.  N.B. ZRLE does it the traditional way with per-client storage
 
46
 * (and so at least ZRLE will work threaded on older systems.)
 
47
 */
 
48
#if LIBVNCSERVER_HAVE_LIBPTHREAD && LIBVNCSERVER_HAVE_TLS && !defined(TLS) && defined(__linux__)
 
49
#define TLS __thread
 
50
#endif
 
51
#ifndef TLS
 
52
#define TLS
 
53
#endif
 
54
 
 
55
static TLS int zlibBeforeBufSize = 0;
 
56
static TLS char *zlibBeforeBuf = NULL;
 
57
 
 
58
static TLS int zlibAfterBufSize = 0;
 
59
static TLS char *zlibAfterBuf = NULL;
 
60
static TLS int zlibAfterBufLen = 0;
49
61
 
50
62
void rfbZlibCleanup(rfbScreenInfoPtr screen)
51
63
{