diff options
author | Adam Tkac <atkac@redhat.com> | 2010-12-08 16:19:51 +0000 |
---|---|---|
committer | Adam Tkac <atkac@redhat.com> | 2010-12-08 16:19:51 +0000 |
commit | 279265169031a9952a9385894345d2b6c96bcef9 (patch) | |
tree | 280d82e90720681027c5554b42f9744821a671af | |
parent | 408e6f6a099ed6741aaf3e6e52d39f3fc7fb5afe (diff) | |
download | tigervnc-279265169031a9952a9385894345d2b6c96bcef9.tar.gz tigervnc-279265169031a9952a9385894345d2b6c96bcef9.zip |
[Bugfix] Use malloc/free instead of Xalloc/Xfree when built against X.Org 1.10 and newer.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4223 3789f03b-4d11-0410-bbf8-ca57d06f2519
-rw-r--r-- | unix/xserver/hw/vnc/Input.cc | 4 | ||||
-rw-r--r-- | unix/xserver/hw/vnc/xvnc.cc | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/unix/xserver/hw/vnc/Input.cc b/unix/xserver/hw/vnc/Input.cc index 9eb70f81..e23f3d37 100644 --- a/unix/xserver/hw/vnc/Input.cc +++ b/unix/xserver/hw/vnc/Input.cc @@ -63,6 +63,10 @@ extern _X_EXPORT DevPrivateKey CoreDevicePrivateKey; #undef class } +#if XORG >= 110 +#define Xfree free +#endif + using namespace rdr; using namespace rfb; diff --git a/unix/xserver/hw/vnc/xvnc.cc b/unix/xserver/hw/vnc/xvnc.cc index 067ce96b..cc15d79f 100644 --- a/unix/xserver/hw/vnc/xvnc.cc +++ b/unix/xserver/hw/vnc/xvnc.cc @@ -91,6 +91,11 @@ extern "C" { #undef public } +#if XORG >= 110 +#define Xalloc malloc +#define Xfree free +#endif + #define XVNCVERSION "TigerVNC 1.0.90" #define XVNCCOPYRIGHT ("Copyright (C) 2002-2005 RealVNC Ltd.\n" \ "Copyright (C) 2000-2006 Constantin Kaplinsky\n" \ |