test for the presence of pci_system_init_dev_mem() before calling it.

This avoids creating a dependency on -current libpciaccess for
BSD systems other than OpenBSD (which don't otherwise need it).
This commit is contained in:
Matthieu Herrb 2008-03-16 18:46:11 +01:00 • committed by Matthieu Herrb
commit db248ffb84
3 changed files with 12 additions and 0 deletions

View file

@ -212,8 +212,10 @@ xf86OSInitVidMem(VidMemInfoPtr pVidMem)
pVidMem->mapMem = mapVidMem;
pVidMem->unmapMem = unmapVidMem;
#if HAVE_PCI_SYSTEM_INIT_DEV_MEM
if (useDevMem)
pci_system_init_dev_mem(devMemFd);
#endif
#ifdef HAS_MTRR_SUPPORT
if (useDevMem) {