summaryrefslogtreecommitdiff
path: root/src/vmmouse.c
diff options
context:
space:
mode:
authorPhilip Langdale <philipl@fido2.homeip.net>2007-09-24 12:03:56 -0700
committerPhilip Langdale <philipl@fido2.homeip.net>2007-09-24 12:03:56 -0700
commit4840be10e99a77d567ee9122f57c6fb6b5208cd9 (patch)
treed73462cae6ca806150b037e7b55e4fe94b3eee8a /src/vmmouse.c
parentd89b0ffc1b994fb8e19cecbab683478b599fea73 (diff)
Add compatibility #define for compilation on pre-X.Org
versions of the Xserver.
Diffstat (limited to 'src/vmmouse.c')
-rw-r--r--src/vmmouse.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/vmmouse.c b/src/vmmouse.c
index b430fc7..ad40cd1 100644
--- a/src/vmmouse.c
+++ b/src/vmmouse.c
@@ -84,6 +84,13 @@
#define VMW_STRING(str) VMW_INNERSTRINGIFY(str)
/*
+ * So that the file compiles unmodified when dropped into an xfree source tree.
+ */
+#ifndef XORG_VERSION_CURRENT
+#define XORG_VERSION_CURRENT XF86_VERSION_CURRENT
+#endif
+
+/*
* Version constants
*/
#define VMMOUSE_MAJOR_VERSION 12