123456789101112131415161718192021222324252627282930313233343536373839 |
- Upstream: no (Too lazy)
- Reason: Fixes build with new GCC by fixing old CPP macros
- diff --git a/src/sis_driver.c b/src/sis_driver.c
- index 51c9660..5e2eba2 100644
- --- a/src/sis_driver.c
- +++ b/src/sis_driver.c
- @@ -4166,7 +4166,7 @@ SISPreInit(ScrnInfoPtr pScrn, int flags)
- biossize = 0x8000;
- break;
- }
- -#if XSERVER_LIBPCIACCESS
- +#if defined(XSERVER_LIBPCIACCESS)
- if(readpci) {
- pSiS->PciInfo->rom_size = biossize;
- pci_device_read_rom(pSiS->PciInfo, pSiS->BIOS);
- diff --git a/src/sis_vga.c b/src/sis_vga.c
- index 8b625d2..c40c140 100644
- --- a/src/sis_vga.c
- +++ b/src/sis_vga.c
- @@ -1715,7 +1715,7 @@ SiSVGAMapMem(ScrnInfoPtr pScrn)
- if(pSiS->VGAMapPhys == 0) pSiS->VGAMapPhys = 0xA0000;
-
- #if XF86_VERSION_CURRENT >= XF86_VERSION_NUMERIC(4,3,0,0,0)
- -#if XSERVER_LIBPCIACCESS
- +#if defined(XSERVER_LIBPCIACCESS)
- (void) pci_device_map_legacy(pSiS->PciInfo, pSiS->VGAMapPhys, pSiS->VGAMapSize,
- PCI_DEV_MAP_FLAG_WRITABLE, &pSiS->VGAMemBase);
- #else
- @@ -1737,7 +1737,7 @@ SiSVGAUnmapMem(ScrnInfoPtr pScrn)
-
- if(pSiS->VGAMemBase == NULL) return;
-
- -#if XSERVER_LIBPCIACCESS
- +#if defined(XSERVER_LIBPCIACCESS)
- (void) pci_device_unmap_legacy(pSiS->PciInfo, pSiS->VGAMemBase, pSiS->VGAMapSize);
- #else
- xf86UnMapVidMem(pScrn->scrnIndex, pSiS->VGAMemBase, pSiS->VGAMapSize);
|