summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/vmware.h3
-rw-r--r--src/vmwarevideo.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/vmware.h b/src/vmware.h
index 7edefd5..ac93706 100644
--- a/src/vmware.h
+++ b/src/vmware.h
@@ -8,7 +8,10 @@
#ifndef VMWARE_H
#define VMWARE_H
+#include "xorgVersion.h"
+#if XORG_VERSION_CURRENT >= XORG_VERSION_NUMERIC(7, 1, 0, 0, 0) || XORG_VERSION_CURRENT < XORG_VERSION_NUMERIC(2, 0, 0, 0, 0)
#include <string.h>
+#endif
#include "xf86.h"
#include "xf86_OSproc.h"
diff --git a/src/vmwarevideo.c b/src/vmwarevideo.c
index 3b8aaa6..613991c 100644
--- a/src/vmwarevideo.c
+++ b/src/vmwarevideo.c
@@ -170,7 +170,7 @@ typedef VMWAREVideoRec *VMWAREVideoPtr;
/*
* Callback functions
*/
-#if XORG_VERSION_CURRENT > XORG_VERSION_NUMERIC(7, 0, 0, 0, 0) || XORG_VERSION_CURRENT < XORG_VERSION_NUMERIC(4, 0, 0, 0, 0)
+#if XORG_VERSION_CURRENT > XORG_VERSION_NUMERIC(7, 0, 0, 0, 0) || XORG_VERSION_CURRENT < XORG_VERSION_NUMERIC(2, 0, 0, 0, 0)
static int vmwareXvPutImage(ScrnInfoPtr pScrn, short src_x, short src_y,
short drw_x, short drw_y, short src_w, short src_h,
short drw_w, short drw_h, int image,