diff options
author | Tim Waugh <twaugh@redhat.com> | 2014-09-04 12:36:09 +0100 |
---|---|---|
committer | Tim Waugh <twaugh@redhat.com> | 2014-09-04 12:37:12 +0100 |
commit | 11e35b81a97ac8c9c692bed43c43af3c0df2ef4f (patch) | |
tree | 3db0d7b97cfda819052024b6361e384b772a9752 /unix/xserver | |
parent | 300411c623d8f8a52caf8d868b6cc24859d620b5 (diff) | |
download | tigervnc-11e35b81a97ac8c9c692bed43c43af3c0df2ef4f.tar.gz tigervnc-11e35b81a97ac8c9c692bed43c43af3c0df2ef4f.zip |
GCFuncs and GCOps are const since 1.16.
Diffstat (limited to 'unix/xserver')
-rw-r--r-- | unix/xserver/hw/vnc/vncHooks.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/unix/xserver/hw/vnc/vncHooks.cc b/unix/xserver/hw/vnc/vncHooks.cc index 29de4c4c..f75a2d49 100644 --- a/unix/xserver/hw/vnc/vncHooks.cc +++ b/unix/xserver/hw/vnc/vncHooks.cc @@ -89,8 +89,13 @@ typedef struct { } vncHooksScreenRec, *vncHooksScreenPtr; typedef struct { +#if XORG >= 116 const GCFuncs *wrappedFuncs; const GCOps *wrappedOps; +#else + GCFuncs *wrappedFuncs; + GCOps *wrappedOps; +#endif } vncHooksGCRec, *vncHooksGCPtr; #if XORG == 15 @@ -916,7 +921,11 @@ public: } GCPtr pGC; vncHooksGCPtr vncHooksGC; +#if XORG >= 116 const GCFuncs* oldFuncs; +#else + GCFuncs* oldFuncs; +#endif ScreenPtr pScreen; }; |