From 069a09b6eccdec0733072c0da3ec2ec5dd533ee7 Mon Sep 17 00:00:00 2001 From: Martin-Éric Racine Date: Sun, 13 Mar 2011 19:40:48 +0200 Subject: Updated resources for libpciaccess --- src/cyrix_driver.c | 6 +++++- src/cyrix_shadow.c | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/cyrix_driver.c b/src/cyrix_driver.c index f404e52..e22a75f 100644 --- a/src/cyrix_driver.c +++ b/src/cyrix_driver.c @@ -68,7 +68,9 @@ #include "vgaHW.h" #include "xf86DDC.h" #include "xf86RAC.h" +#ifndef XSERVER_LIBPCIACCESS #include "xf86Resources.h" +#endif #include "compiler.h" #include "xf86int10.h" #include "vbe.h" @@ -660,7 +662,9 @@ CYRIXPreInit(ScrnInfoPtr pScrn, int flags) /* This is the general case */ for (i = 0; inumEntities; i++) { pCyrix->pEnt = xf86GetEntityInfo(pScrn->entityList[i]); - if (pCyrix->pEnt->resources) return FALSE; + #ifndef XSERVER_LIBPCIACCESS + if (pCyrix->pEnt->resources) return FALSE; + #endif pCyrix->Chipset = pCyrix->pEnt->chipset; pScrn->chipset = (char *)xf86TokenToString(CYRIXChipsets, pCyrix->pEnt->chipset); diff --git a/src/cyrix_shadow.c b/src/cyrix_shadow.c index a914429..afb928d 100644 --- a/src/cyrix_shadow.c +++ b/src/cyrix_shadow.c @@ -11,7 +11,9 @@ #include "xf86.h" #include "xf86_OSproc.h" +#ifndef XSERVER_LIBPCIACCESS #include "xf86Resources.h" +#endif #include "xf86PciInfo.h" #include "xf86Pci.h" #include "cyrix.h" -- cgit v1.2.3