summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichel Dänzer <daenzer@vmware.com>2009-12-29 16:41:16 +0100
committerMichel Dänzer <daenzer@vmware.com>2009-12-29 16:41:16 +0100
commit4bec18ab8dffd90ab84b986de2136a9d848d3a4a (patch)
tree6c78922381c01442dfb52bfc86ac015529de460a
parent74c830e61bdf700c7e422aaa5b1a0136561295dd (diff)
vmware: Fix crash with xserver >= 1.7.
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=24541 .
-rw-r--r--configure.ac4
-rw-r--r--src/vmware.c9
2 files changed, 13 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index af3deb5..dc781ce 100644
--- a/configure.ac
+++ b/configure.ac
@@ -76,6 +76,10 @@ PKG_CHECK_EXISTS([xorg-server >= 1.2.0],
[AC_DEFINE([HAVE_XORG_SERVER_1_2_0], 1,
[Has version 1.2.0 or greater of the Xserver])])
+PKG_CHECK_EXISTS([xorg-server >= 1.7.0],
+ [AC_DEFINE([HAVE_XORG_SERVER_1_7_0], 1,
+ [Has version 1.7.0 or greater of the Xserver])])
+
# Checks for libraries.
diff --git a/src/vmware.c b/src/vmware.c
index 6004677..a1575dd 100644
--- a/src/vmware.c
+++ b/src/vmware.c
@@ -146,6 +146,13 @@ static PciChipsets VMWAREPciChipsets[] = {
{ -1, -1, RES_UNDEFINED }
};
+#if HAVE_XORG_SERVER_1_7_0
+
+#define xf86LoaderReqSymLists(...) do {} while (0)
+#define LoaderRefSymLists(...) do {} while (0)
+
+#else
+
static const char *vgahwSymbols[] = {
"vgaHWGetHWRec",
"vgaHWGetIOBase",
@@ -178,6 +185,8 @@ static const char *shadowfbSymbols[] = {
NULL
};
+#endif /* HAVE_XORG_SERVER_1_7_0 */
+
#ifdef XFree86LOADER
static XF86ModuleVersionInfo vmwareVersRec = {
"vmware",