diff options
Diffstat (limited to 'x11vnc/misc/turbovnc/convert')
-rwxr-xr-x | x11vnc/misc/turbovnc/convert | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/x11vnc/misc/turbovnc/convert b/x11vnc/misc/turbovnc/convert index c0495a2..f218f84 100755 --- a/x11vnc/misc/turbovnc/convert +++ b/x11vnc/misc/turbovnc/convert @@ -19,6 +19,13 @@ while (<>) { #define xrealloc realloc #define rfbTightNoZlib 0x0A #define tightSubsampLevel correMaxWidth + +#if LIBVNCSERVER_HAVE_LIBPTHREAD && LIBVNCSERVER_HAVE_TLS +#define TLS __thread +#else +#define TLS +#endif + END next; } @@ -38,6 +45,10 @@ END # $_ =~ s/cl->tightQualityLevel;/cl->tightQualityLevel * 10;/; + if (/^static\s+(Bool|int|CARD32|PALETTE|char|unsigned|tjhandle)\s+[^()]*;\s*$/) { + $_ =~ s/^static/static TLS /; + } + $_ =~ s/rfbScreen.pfbMemory/cl->scaledScreen->frameBuffer/g; $_ =~ s/rfbScreen.paddedWidthInBytes/cl->scaledScreen->paddedWidthInBytes/g; $_ =~ s/rfbScreen.bitsPerPixel/cl->scaledScreen->bitsPerPixel/g; |