From 029109fcb286a1e3965e2caeab044d53df350f64 Mon Sep 17 00:00:00 2001 From: Matthieu Herrb Date: Mon, 28 Feb 2011 21:57:44 +0100 Subject: Don't use Xalloc & friends with recent X servers. --- src/ws.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/ws.c b/src/ws.c index 9072fff..8a7b2c8 100644 --- a/src/ws.c +++ b/src/ws.c @@ -36,6 +36,17 @@ #include #include +#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) > 10 +#undef xalloc +#undef xcalloc + +#define xcalloc calloc +#define xalloc malloc +#define Xcalloc calloc +#define Xalloc malloc +#define Xfree free +#endif + #include "ws.h" #ifdef HAVE_PROPERTIES -- cgit v1.2.3