diff options
Diffstat (limited to 'src/nv_setup.c')
-rw-r--r-- | src/nv_setup.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nv_setup.c b/src/nv_setup.c index 92ca3ec..6a7c048 100644 --- a/src/nv_setup.c +++ b/src/nv_setup.c @@ -287,7 +287,7 @@ static void nv10GetConfig (NVPtr pNv) } #endif -#if XSERVER_LIBPCIACCESS +#ifdef XSERVER_LIBPCIACCESS { /* [AGP]: I don't know if this is correct */ struct pci_device *dev = pci_device_find_by_slot(0, 0, 0, 1); @@ -346,7 +346,7 @@ NVCommonSetup(ScrnInfoPtr pScrn) int FlatPanel = -1; /* really means the CRTC is slaved */ Bool Television = FALSE; void *tmp; -#if XSERVER_LIBPCIACCESS +#ifdef XSERVER_LIBPCIACCESS int err; #endif @@ -378,7 +378,7 @@ NVCommonSetup(ScrnInfoPtr pScrn) pVga->MMIOBase = (CARD8 *)pNv; pVga->MMIOOffset = 0; -#if XSERVER_LIBPCIACCESS +#ifdef XSERVER_LIBPCIACCESS err = pci_device_map_range(pNv->PciInfo, pNv->IOAddress, 0x01000000, PCI_DEV_MAP_FLAG_WRITABLE, &tmp); if (err != 0) { |