diff options
author | Stefan Dirsch <sndirsch@suse.de> | 2012-01-14 05:43:33 +0100 |
---|---|---|
committer | Stefan Dirsch <sndirsch@suse.de> | 2012-01-14 05:43:33 +0100 |
commit | b213f6e876f29cbcaccffeeb733726be4c91529e (patch) | |
tree | cba6e724dd1c9e7fb0aa3b3936b6a43ccaeb535b | |
parent | 94217a4dd908f1368dfdef90797ce74a081663fb (diff) |
Make driver backwards compatible for server 1.6.x.
Signed-off-by: Stefan Dirsch <sndirsch@suse.de>
-rw-r--r-- | src/intel_module.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/intel_module.c b/src/intel_module.c index fb98a040..4a0d9806 100644 --- a/src/intel_module.c +++ b/src/intel_module.c @@ -38,6 +38,10 @@ #include "legacy/legacy.h" #include "sna/sna_module.h" +#if XORG_VERSION_CURRENT < XORG_VERSION_NUMERIC(1,6,99,0,0) +#include <xf86Resources.h> +#endif + static struct intel_device_info *chipset_info; static const struct intel_device_info intel_i81x_info = { @@ -322,7 +326,11 @@ static Bool intel_pci_probe(DriverPtr driver, for (i = 0; i < NUM_CHIPSETS; i++) { intel_pci_chipsets[i].numChipset = intel_chipsets[i].token; intel_pci_chipsets[i].PCIid = intel_chipsets[i].token; +#if XORG_VERSION_CURRENT < XORG_VERSION_NUMERIC(1,6,99,0,0) + intel_pci_chipsets[i].resList = RES_SHARED_VGA; +#else intel_pci_chipsets[i].dummy = NULL; +#endif } scrn = xf86ConfigPciEntity(NULL, 0, entity_num, intel_pci_chipsets, |